Makefile 534 B

12345678910111213141516171819202122232425262728
  1. ifeq ($(DESTDIR),)
  2. DESTDIR := /
  3. endif
  4. ifeq ($(PREFIX),)
  5. PREFIX := usr/
  6. endif
  7. .PHONY : bundle
  8. bundle:
  9. # Clone pywwt as needed
  10. if [ ! -d "./pywwt" ]; then \
  11. git clone --recurse-submodules "https://notabug.org/CYBERDEViL/pywwt"; \
  12. fi
  13. # Build pywwt
  14. @cd pywwt && $(MAKE) bundle
  15. # Build Wiizard
  16. @python3 setup.py build
  17. .PHONY : install
  18. install:
  19. # Install pywwt
  20. @PREFIX="$(PREFIX)" DESTDIR="${DESTDIR}" $(MAKE) -C ./pywwt/ install
  21. # Install Wiizard
  22. @python3 setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build