Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. RPMS_DIR=rpm/
  2. VERSION := $(shell cat version)
  3. PYTHON ?= python3
  4. help:
  5. @echo "make rpms -- generate binary rpm packages"
  6. @echo "make res -- compile resources"
  7. @echo "make update-repo-current -- copy newly generated rpms to qubes yum repo"
  8. @echo "make update-repo-unstable -- same, but to -testing repo"
  9. @echo "make update-repo-installer -- copy dom0 rpms to installer repo"
  10. rpms: rpms-dom0
  11. rpms-vm:
  12. rpms-dom0:
  13. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/qmgr.spec
  14. rpm --addsign $(RPMS_DIR)/x86_64/qubes-manager*$(VERSION)*.rpm
  15. qubesmanager/ui_%.py: ui/%.ui
  16. pyuic4 --from-imports -o $@ $<
  17. ui: $(patsubst ui/%.ui,qubesmanager/ui_%.py,$(wildcard ui/*.ui))
  18. res:
  19. pyrcc4 -py3 -o qubesmanager/resources_rc.py resources.qrc
  20. translations:
  21. lrelease-qt4 qubesmanager.pro
  22. python:
  23. $(PYTHON) ./setup.py build
  24. python_install:
  25. $(PYTHON) ./setup.py install -O1 --skip-build --root $(DESTDIR)
  26. update_ts: res
  27. pylupdate4 qubesmanager.pro
  28. update-repo-current:
  29. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current/dom0/rpm/
  30. update-repo-current-testing:
  31. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current-testing/dom0/rpm/
  32. update-repo-unstable:
  33. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/unstable/dom0/rpm/
  34. update-repo-installer:
  35. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../installer/yum/qubes-dom0/rpm/
  36. clean:
  37. rm -f qubesmanager/ui_*.py