Makefile 930 B

1234567891011121314151617181920212223242526272829
  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. install -d $(DESTDIR)/etc/qubes/post-install.d
  17. install -m 0755 scripts/30-keyboard-layout-service.sh \
  18. $(DESTDIR)/etc/qubes/post-install.d/30-keyboard-layout-service.sh
  19. clean:
  20. rm -rf test-packages/__pycache__ qubesadmin/__pycache__
  21. rm -rf qubesadmin/*/__pycache__ qubesadmin/tests/*/__pycache__
  22. rm -rf test-packages/*.egg-info
  23. rm -f .coverage
  24. rm -rf debian/changelog.*
  25. rm -rf pkgs