Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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)/tools \
  16. $(DESTDIR)$(PYTHON_QUBESPATH)/ext \
  17. $(DESTDIR)$(PYTHON_QUBESPATH)/tests \
  18. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/vm \
  19. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/tools
  20. cp \
  21. __init__.py* \
  22. _pluginloader.py* \
  23. config.py* \
  24. dochelpers.py* \
  25. events.py* \
  26. log.py* \
  27. plugins.py* \
  28. rngdoc.py* \
  29. utils.py* \
  30. $(DESTDIR)$(PYTHON_QUBESPATH)
  31. cp \
  32. vm/__init__.py* \
  33. vm/adminvm.py* \
  34. vm/appvm.py* \
  35. vm/dispvm.py* \
  36. vm/hvm.py* \
  37. vm/netvm.py* \
  38. vm/proxyvm.py* \
  39. vm/qubesvm.py* \
  40. vm/templatehvm.py* \
  41. vm/templatevm.py* \
  42. $(DESTDIR)$(PYTHON_QUBESPATH)/vm
  43. cp \
  44. storage/__init__.py* \
  45. storage/xen.py* \
  46. $(DESTDIR)$(PYTHON_QUBESPATH)/storage
  47. cp \
  48. tools/__init__.py* \
  49. tools/qubes_create.py* \
  50. tools/qvm_ls.py* \
  51. $(DESTDIR)$(PYTHON_QUBESPATH)/tools
  52. cp ext/__init__.py* $(DESTDIR)$(PYTHON_QUBESPATH)/ext
  53. cp \
  54. tests/__init__.py* \
  55. tests/events.py* \
  56. tests/init.py* \
  57. tests/run.py* \
  58. $(DESTDIR)$(PYTHON_QUBESPATH)/tests
  59. cp \
  60. tests/vm/__init__.py* \
  61. tests/vm/init.py* \
  62. tests/vm/adminvm.py* \
  63. tests/vm/qubesvm.py* \
  64. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/vm
  65. cp \
  66. tests/tools/__init__.py* \
  67. tests/tools/init.py* \
  68. tests/tools/qvm_ls.py* \
  69. $(DESTDIR)$(PYTHON_QUBESPATH)/tests/tools