Makefile 480 B

1234567891011121314151617181920
  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-gui.desktop $(DESTDIR)/etc/xdg/autostart/
  12. clean:
  13. rm -rf test-packages/__pycache__ qubesadmin/__pycache__
  14. rm -rf qubesadmin/*/__pycache__ qubesadmin/tests/*/__pycache__
  15. rm -rf test-packages/*.egg-info
  16. rm -f .coverage