Music production session manager https://www.laborejo.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.8KB

  1. #This is a makefile and needs tabs, not spaces.
  2. .PHONY: install uninstall clean gitclean resources
  3. all:
  4. #Our Program
  5. printf "prefix = \"$(PREFIX)\"" > compiledprefix.py
  6. 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)
  7. rm compiledprefix.py
  8. #nsm-data
  9. 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
  10. clean:
  11. rm -f "$(PROGRAM).bin"
  12. rm -rf "$(PROGRAM).build"
  13. rm -f "nsm-data.bin"
  14. rm -rf "nsm-data.build"
  15. rm Makefile
  16. #Convenience function for developing, not used for the build or install process
  17. gitclean:
  18. git clean -f -X -d
  19. #Convenience function for developing, not used for the build or install process
  20. resources:
  21. cd documentation && python3 build.py
  22. cd documentation && sh build-documentation.sh
  23. cd qtgui/resources && sh buildresources.sh
  24. install:
  25. #nsm-data
  26. install -D -m 755 "nsm-data.bin" $(DESTDIR)$(PREFIX)/bin/nsm-data
  27. #Argodejo
  28. install -D -m 755 $(PROGRAM).bin $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
  29. install -D -m 644 documentation/out/* -t $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM)
  30. install -D -m 644 README.md $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM)/README.md
  31. install -D -m 644 LICENSE $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM)/LICENSE
  32. install -D -m 644 desktop/desktop.desktop $(DESTDIR)$(PREFIX)/share/applications/org.laborejo.argodejo.desktop
  33. install -D -m 644 desktop/argodejo-continue.desktop $(DESTDIR)$(PREFIX)/share/applications/org.laborejo.argodejo-continue.desktop
  34. install -d $(DESTDIR)$(PREFIX)/share/man/man1
  35. gzip -c documentation/$(PROGRAM).1 > $(DESTDIR)$(PREFIX)/share/man/man1/$(PROGRAM).1.gz
  36. #Icons
  37. for size in 16 32 64 128 256 512 ; do \
  38. install -D -m 644 desktop/images/"$$size"x"$$size".png $(DESTDIR)$(PREFIX)/share/icons/hicolor/"$$size"x"$$size"/apps/$(PROGRAM).png ; \
  39. done
  40. install -D -m 644 desktop/images/256x256.png $(DESTDIR)$(PREFIX)/share/pixmaps/$(PROGRAM).png
  41. #Engine resources
  42. install -d $(DESTDIR)$(PREFIX)/share/$(PROGRAM)
  43. cp -r engine/resources/* $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/
  44. uninstall:
  45. #Directories
  46. rm -rf $(DESTDIR)$(PREFIX)/share/doc/$(PROGRAM)
  47. rm -rf $(DESTDIR)$(PREFIX)/share/$(PROGRAM)
  48. #Files
  49. rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
  50. rm -f $(DESTDIR)$(PREFIX)/bin/nsm-data
  51. rm -f $(DESTDIR)$(PREFIX)/share/applications/org.laborejo.argodejo.desktop
  52. rm -f $(DESTDIR)$(PREFIX)/share/applications/org.laborejo.argodejo-continue.desktop
  53. rm -f $(DESTDIR)$(PREFIX)/share/man/man1/$(PROGRAM).1.gz
  54. #Icons
  55. for size in 16 32 64 128 256 512 ; do \
  56. rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/"$$size"x"$$size"/apps/$(PROGRAM).png ; \
  57. done
  58. rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/$(PROGRAM).png