neovim-gtk/Makefile
daa84 54791aecb1 When install to $HOME/.local - launcher does not display nvim-gtk
replace Exec=nvim-gtk to Exec=full_path_to_nvim-gtk when installing
2017-09-20 18:12:01 +03:00

23 lines
681 B
Makefile

PREFIX?=/usr/local
test:
RUST_BACKTRACE=1 cargo test
run:
RUST_BACKTRACE=1 cargo run
install: install-resources
cargo install --force --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/
sed -i "s|Exec=nvim-gtk|Exec=$(PREFIX)/bin/nvim-gtk|" $(PREFIX)/share/applications/nvim-gtk.desktop
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