Makefile 663 B

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