Makefile 757 B

1234567891011121314151617181920212223242526
  1. .PHONY: all
  2. all: build
  3. PYTHON ?= python3
  4. .PHONY: build
  5. build:
  6. $(PYTHON) setup.py build
  7. .PHONY: install
  8. install:
  9. $(PYTHON) setup.py install -O1 $(PYTHON_PREFIX_ARG) --root $(DESTDIR)
  10. install -d $(DESTDIR)/etc/xdg/autostart
  11. install -m 0644 etc/qvm-start-daemon.desktop $(DESTDIR)/etc/xdg/autostart/
  12. install -m 0644 etc/qvm-start-daemon-kde.desktop $(DESTDIR)/etc/xdg/autostart/
  13. install -d $(DESTDIR)/usr/bin
  14. ln -sf qvm-start-daemon $(DESTDIR)/usr/bin/qvm-start-gui
  15. install -m 0755 scripts/qubes-guivm-session $(DESTDIR)/usr/bin/
  16. clean:
  17. rm -rf test-packages/__pycache__ qubesadmin/__pycache__
  18. rm -rf qubesadmin/*/__pycache__ qubesadmin/tests/*/__pycache__
  19. rm -rf test-packages/*.egg-info
  20. rm -f .coverage
  21. rm -rf debian/changelog.*
  22. rm -rf pkgs