Makefile 556 B

123456789101112131415161718192021
  1. OS ?= Linux
  2. PYTHON_QUBESPATH = $(PYTHON_SITEPATH)/qubes
  3. all:
  4. python -m compileall .
  5. python -O -m compileall .
  6. install:
  7. ifndef PYTHON_SITEPATH
  8. $(error PYTHON_SITEPATH not defined)
  9. endif
  10. mkdir -p $(DESTDIR)$(PYTHON_QUBESPATH)/storage
  11. cp __init__.py $(DESTDIR)$(PYTHON_QUBESPATH)/storage
  12. cp __init__.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)/storage
  13. ifneq ($(BACKEND_VMM),)
  14. if [ -r $(BACKEND_VMM).py ]; then \
  15. cp $(BACKEND_VMM).py $(DESTDIR)$(PYTHON_QUBESPATH)/storage && \
  16. cp $(BACKEND_VMM).py[co] $(DESTDIR)$(PYTHON_QUBESPATH)/storage; \
  17. fi
  18. endif