--- Makefile.orig 2024-10-05 16:57:31 UTC +++ Makefile @@ -20,7 +20,7 @@ LIBS = -lncurses # You shouldn't have to modify anything below this line. # There's a dynamic format in the object-display routines; suppress the warning -CFLAGS = $(DEBUG) $(PROFILE) -Wall -Wno-format-security +CFLAGS ?= $(DEBUG) $(PROFILE) -Wall -Wno-format-security FILES = \ attack.c \ @@ -93,16 +93,16 @@ install: empire.6 uninstall @cppcheck --quiet --inline-suppr --suppress=missingIncludeSystem --suppress=unusedFunction --template gcc --enable=all --force *.[ch] install: empire.6 uninstall - 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 vms-empire $(DESTDIR)/usr/bin/ - install -m 0644 empire.6 $(DESTDIR)/usr/share/man/man6/vms-empire.6 - install -m 0644 vms-empire.desktop $(DESTDIR)/usr/share/applications/ - install -m 0644 vms-empire.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/ - install -m 0644 vms-empire.xml $(DESTDIR)/usr/share/appdata/ + install -m 0755 -d $(DESTDIR)$(PREFIX)/bin + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/man/man6 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications/ + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/ + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/appdata + install -m 0755 vms-empire $(DESTDIR)$(PREFIX)/bin/ + install -m 0644 empire.6 $(DESTDIR)$(PREFIX)/share/man/man6/vms-empire.6 + install -m 0644 vms-empire.desktop $(DESTDIR)$(PREFIX)/share/applications/ + install -m 0644 vms-empire.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps/ + install -m 0644 vms-empire.xml $(DESTDIR)$(PREFIX)/share/appdata/ uninstall: rm -f /usr/bin/vms-empire /usr/share/man/man6/vms-empire.6