Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. OS ?= Linux
  2. PYTHON_QUBESPATH = $(PYTHON_SITEPATH)/qubes
  3. SETTINGS_SUFFIX = $(BACKEND_VMM)-$(OS)
  4. all:
  5. python -m compileall .
  6. python -O -m compileall .
  7. make -C storage all
  8. install:
  9. ifndef PYTHON_SITEPATH
  10. $(error PYTHON_SITEPATH not defined)
  11. endif
  12. mkdir -p $(DESTDIR)$(PYTHON_QUBESPATH)
  13. cp qubes.py $(DESTDIR)$(PYTHON_QUBESPATH)
  14. cp qubes.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
  15. cp qubesutils.py $(DESTDIR)$(PYTHON_QUBESPATH)
  16. cp qubesutils.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
  17. cp guihelpers.py $(DESTDIR)$(PYTHON_QUBESPATH)
  18. cp guihelpers.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
  19. cp backup.py $(DESTDIR)$(PYTHON_QUBESPATH)
  20. cp backup.py[co] $(DESTDIR)$(PYTHON_QUBESPATH)
  21. ifneq ($(BACKEND_VMM),)
  22. if [ -r settings-$(SETTINGS_SUFFIX).py ]; then \
  23. cp settings-$(SETTINGS_SUFFIX).py $(DESTDIR)$(PYTHON_QUBESPATH)/settings.py && \
  24. cp settings-$(SETTINGS_SUFFIX).pyc $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyc && \
  25. cp settings-$(SETTINGS_SUFFIX).pyo $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyo; \
  26. fi
  27. endif
  28. make -C storage install