Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. install:
  8. ifndef PYTHON_SITEPATH
  9. $(error PYTHON_SITEPATH not defined)
  10. endif
  11. mkdir -p $(DESTDIR)$(PYTHON_QUBESPATH)
  12. mkdir \
  13. $(DESTDIR)$(PYTHON_QUBESPATH)/vm \
  14. $(DESTDIR)$(PYTHON_QUBESPATH)/storage \
  15. $(DESTDIR)$(PYTHON_QUBESPATH)/ext \
  16. $(DESTDIR)$(PYTHON_QUBESPATH)/tests \
  17. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/vm
  18. cp \
  19. __init__.py* \
  20. _pluginloader.py* \
  21. config.py* \
  22. dochelpers.py* \
  23. events.py* \
  24. log.py* \
  25. plugins.py* \
  26. rngdoc.py* \
  27. utils.py* \
  28. $(DESTDIR)$(PYTHON_QUBESPATH)
  29. cp \
  30. vm/__init__.py* \
  31. vm/adminvm.py* \
  32. vm/appvm.py* \
  33. vm/dispvm.py* \
  34. vm/hvm.py* \
  35. vm/netvm.py* \
  36. vm/proxyvm.py* \
  37. vm/qubesvm.py* \
  38. vm/templatehvm.py* \
  39. vm/templatevm.py* \
  40. $(DESTDIR)$(PYTHON_QUBESPATH)/vm
  41. cp \
  42. storage/__init__.py* \
  43. storage/xen.py* \
  44. $(DESTDIR)$(PYTHON_QUBESPATH)/storage
  45. cp ext/__init__.py* $(DESTDIR)$(PYTHON_QUBESPATH)/ext
  46. cp \
  47. tests/__init__.py* \
  48. tests/events.py* \
  49. tests/init.py* \
  50. tests/run.py* \
  51. $(DESTDIR)$(PYTHON_QUBESPATH)/tests
  52. cp \
  53. tests/vm/__init__.py* \
  54. tests/vm/init.py* \
  55. tests/vm/adminvm.py* \
  56. tests/vm/qubesvm.py* \
  57. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/vm