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
|
|
|
|
|
|
|
install:
|
2017-03-31 09:02:49 +00:00
|
|
|
mkdir -p $(PREFIX)/bin/
|
2017-03-29 15:29:19 +00:00
|
|
|
cp target/release/nvim-gtk $(PREFIX)/bin/
|
2017-04-02 14:30:19 +00:00
|
|
|
xdg-desktop-menu install --novendor ./desktop/nvim-gtk.desktop
|
|
|
|
xdg-icon-resource install --novendor --size 128 ./desktop/nvim-gtk.png
|
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
|