19 lines
450 B
Makefile
19 lines
450 B
Makefile
PREFIX?=/usr/local
|
|
|
|
test:
|
|
RUST_BACKTRACE=1 cargo test
|
|
|
|
run:
|
|
RUST_BACKTRACE=1 cargo run
|
|
|
|
install:
|
|
mkdir -p $(PREFIX)/bin/
|
|
cp target/release/nvim-gtk $(PREFIX)/bin/
|
|
mkdir -p $(PREFIX)/share/applications/
|
|
cp desktop/nvim-gtk.desktop $(PREFIX)/share/applications/
|
|
mkdir -p $(PREFIX)/share/icons/
|
|
cp desktop/nvim-gtk.png $(PREFIX)/share/icons/
|
|
mkdir -p $(PREFIX)/share/fonts/
|
|
cp -n desktop/dejavu_font/*.ttf $(PREFIX)/share/fonts/
|
|
fc-cache -fv
|