2020-03-30 17:22:30 +02:00
|
|
|
diff --git a/Makefile b/Makefile
|
|
|
|
index ef8bddd..39b0a4d 100644
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -31,14 +31,25 @@ wumpus.html: wumpus.xml
|
|
|
|
SOURCES = README COPYING NEWS control Makefile wumpus.c superhack.c wumpus.xml wumpus.png wumpus.desktop superhack.desktop
|
2015-06-08 21:00:50 +02:00
|
|
|
|
2020-03-30 17:22:30 +02:00
|
|
|
install: wumpus superhack wumpus.6
|
|
|
|
- mkdir -p $(prefix)/bin
|
|
|
|
- mkdir -p $(prefix)/share/man/man6
|
|
|
|
- cp wumpus superhack $(prefix)/bin/
|
|
|
|
- cp wumpus.6 $(prefix)/share/man/man6/
|
2015-06-08 21:00:50 +02:00
|
|
|
+ install -m 0755 -d $(DESTDIR)/usr/bin/
|
|
|
|
+ install -m 0755 -d $(DESTDIR)/usr/share/man/man6/
|
|
|
|
+ install -m 0755 -d $(DESTDIR)//usr/share/applications/
|
|
|
|
+ install -m 0755 -d $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
|
|
|
|
+ install -m 0755 -d $(DESTDIR)/usr/share/appdata/
|
|
|
|
+ install -m 0755 superhack wumpus $(DESTDIR)/usr/bin/
|
|
|
|
+ install -m 0644 wumpus.6 $(DESTDIR)/usr/share/man/man6/
|
|
|
|
+ install -m 0644 wumpus.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
+ install -m 0644 superhack.desktop $(DESTDIR)/usr/share/applications/
|
|
|
|
+ install -m 0644 wumpus.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/
|
|
|
|
+ install -m 0644 wumpus.xml $(DESTDIR)/usr/share/appdata/
|
|
|
|
|
|
|
|
uninstall:
|
2020-03-30 17:22:30 +02:00
|
|
|
- rm $(prefix)/bin/wumpus $(prefix)/bin/superhack
|
|
|
|
- rm $(prefix)/share/man/man6/wumpus.6
|
2015-06-08 21:00:50 +02:00
|
|
|
+ rm -f /usr/bin/superhack /usr/bin/wumpus
|
|
|
|
+ rm -f /usr/share/man/man6/wumpus.6
|
|
|
|
+ rm -f /usr/share/applications/wumpus.desktop
|
|
|
|
+ rm -f /usr/share/applications/superhack.desktop
|
|
|
|
+ rm -f /usr/share/icons/hicolor/48x48/apps/wumpus.png
|
|
|
|
+ rm -f /usr/share/appdata/wumpus.xml
|
|
|
|
|
|
|
|
CPPCHECKOPTS =
|
|
|
|
cppcheck:
|