2017-03-29 15:29:19 +00:00
|
|
|
PREFIX?=/usr/local
|
|
|
|
|
2016-03-19 10:27:39 +00:00
|
|
|
test:
|
2016-03-24 09:21:27 +00:00
|
|
|
RUST_BACKTRACE=1 cargo test
|
2016-04-03 15:13:18 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
RUST_BACKTRACE=1 cargo run
|
2017-03-29 15:29:19 +00:00
|
|
|
|
2017-04-27 14:37:07 +00:00
|
|
|
install: install-resources
|
2017-07-09 21:29:44 +00:00
|
|
|
cargo install --force --root $(PREFIX)
|
2017-04-27 14:37:07 +00:00
|
|
|
|
|
|
|
install-resources:
|
2017-05-24 11:00:23 +00:00
|
|
|
mkdir -p $(PREFIX)/share/nvim-gtk/
|
|
|
|
cp -r runtime $(PREFIX)/share/nvim-gtk/
|
2017-04-02 17:45:00 +00:00
|
|
|
mkdir -p $(PREFIX)/share/applications/
|
2017-09-22 15:05:12 +00:00
|
|
|
cp desktop/org.daa.NeovimGtk.desktop $(PREFIX)/share/applications/
|
|
|
|
sed -i "s|Exec=nvim-gtk|Exec=$(PREFIX)/bin/nvim-gtk|" $(PREFIX)/share/applications/org.daa.NeovimGtk.desktop
|
2017-11-19 13:29:35 +00:00
|
|
|
mkdir -p $(PREFIX)/share/icons/hicolor/48x48/apps/
|
|
|
|
cp desktop/org.daa.NeovimGtk.png $(PREFIX)/share/icons/hicolor/48x48/apps/
|
|
|
|
mkdir -p $(PREFIX)/share/icons/hicolor/scalable/apps/
|
|
|
|
cp desktop/org.daa.NeovimGtk.svg $(PREFIX)/share/icons/hicolor/scalable/apps/
|
2017-03-31 09:02:49 +00:00
|
|
|
mkdir -p $(PREFIX)/share/fonts/
|
2017-03-29 15:29:19 +00:00
|
|
|
cp -n desktop/dejavu_font/*.ttf $(PREFIX)/share/fonts/
|
|
|
|
fc-cache -fv
|