|
|
@ -9,9 +9,15 @@ all: |
|
|
|
python3 -m nuitka --recurse-all --python-flag -O --warn-unusual-code --warn-implicit-exceptions --recurse-not-to=PyQt5 --show-progress --show-modules --file-reference-choice=runtime $(PROGRAM) |
|
|
|
rm compiledprefix.py |
|
|
|
|
|
|
|
clean: |
|
|
|
#nsm-data |
|
|
|
python3 -m nuitka --recurse-all --python-flag -O --warn-unusual-code --warn-implicit-exceptions --recurse-not-to=PyQt5 --show-progress --show-modules --file-reference-choice=runtime tools/nsm-data |
|
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
rm -f "$(PROGRAM).bin" |
|
|
|
rm -rf "$(PROGRAM).build" |
|
|
|
rm -f "nsm-data.bin" |
|
|
|
rm -rf "nsm-data.build" |
|
|
|
rm Makefile |
|
|
|
|
|
|
|
#Convenience function for developing, not used for the build or install process
|
|
|
@ -24,7 +30,11 @@ resources: |
|
|
|
cd documentation && sh build-documentation.sh |
|
|
|
cd qtgui/resources && sh buildresources.sh |
|
|
|
|
|
|
|
install: |
|
|
|
install: |
|
|
|
#nsm-data |
|
|
|
install -D -m 755 "nsm-data.bin" $(DESTDIR)$(PREFIX)/bin/nsm-data |
|
|
|
|
|
|
|
#Argodejo |
|
|
|
install -D -m 755 $(PROGRAM).bin $(DESTDIR)$(PREFIX)/bin/$(PROGRAM) |
|
|
|
install -D -m 644 documentation/out/* -t $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM) |
|
|
|
install -D -m 644 README.md $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM)/README.md |
|
|
@ -35,7 +45,6 @@ install: |
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man1 |
|
|
|
gzip -c documentation/$(PROGRAM).1 > $(DESTDIR)$(PREFIX)/share/man/man1/$(PROGRAM).1.gz |
|
|
|
|
|
|
|
|
|
|
|
#Icons |
|
|
|
for size in 16 32 64 128 256 512 ; do \
|
|
|
|
install -D -m 644 desktop/images/"$$size"x"$$size".png $(DESTDIR)$(PREFIX)/share/icons/hicolor/"$$size"x"$$size"/apps/$(PROGRAM).png ; \
|
|
|
@ -46,18 +55,19 @@ install: |
|
|
|
#Currently no engine resources |
|
|
|
#install -d $(DESTDIR)$(PREFIX)/share/$(PROGRAM) |
|
|
|
#cp -r engine/resources/* $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uninstall: |
|
|
|
#Directories |
|
|
|
#Directories |
|
|
|
rm -rf $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM) |
|
|
|
|
|
|
|
#Currently nothing in share |
|
|
|
#rm -rf $(DESTDIR)$(PREFIX)/share/$(PROGRAM) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Files |
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM) |
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/nsm-data |
|
|
|
rm -f $(DESTDIR)$(PREFIX)/share/applications/$(PROGRAM).desktop |
|
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/$(PROGRAM).1.gz |
|
|
|
|
|
|
|