neovim-gtk/Makefile
daa 64c5fb1147 Add neovim-qt compatible layer (#5)
Add shim to rtp, add gtk gui flag
2017-05-24 14:01:51 +03:00

22 lines
572 B
Makefile

PREFIX?=/usr/local
test:
RUST_BACKTRACE=1 cargo test
run:
RUST_BACKTRACE=1 cargo run
install: install-resources
cargo install --root $(PREFIX)
install-resources:
mkdir -p $(PREFIX)/share/nvim-gtk/
cp -r runtime $(PREFIX)/share/nvim-gtk/
mkdir -p $(PREFIX)/share/applications/
cp desktop/nvim-gtk.desktop $(PREFIX)/share/applications/
mkdir -p $(PREFIX)/share/icons/hicolor/128x128/apps/
cp desktop/nvim-gtk.png $(PREFIX)/share/icons/hicolor/128x128/apps/
mkdir -p $(PREFIX)/share/fonts/
cp -n desktop/dejavu_font/*.ttf $(PREFIX)/share/fonts/
fc-cache -fv