Redid makefile. Added icon

This commit is contained in:
2023-01-08 20:16:00 -08:00
parent e7ea766dda
commit 8573a4628a
3 changed files with 93 additions and 5 deletions

View File

@@ -1,6 +1,16 @@
PREFIX ?= /usr
make:
nim -d:ssl -d:release c toolbox.nim
install:
cp toolbox /usr/local/bin/
cp toolbox.desktop /usr/share/applications/
install -D -m 0755 ./toolbox $(PREFIX)/bin/toolbox
install -D -m 0644 ./toolbox.desktop $(PREFIX)/share/applications/toolbox.desktop
install -D -m 0644 resources/space.quietfeathers.toolbox.svg $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg
gtk-update-icon-cache /usr/share/icons/hicolor
uninstall:
rm -f $(PREFIX)/local/bin/toolbox
rm -f $(PREFIX)/share/applications/toolbox.desktop
rm -f $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg
gtk-update-icon-cache /usr/share/icons/hicolor