Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. RPMS_DIR=rpm/
  2. VERSION := $(shell cat version)
  3. help:
  4. @echo "make rpms -- generate binary rpm packages"
  5. @echo "make res -- compile resources"
  6. @echo "make update-repo-current -- copy newly generated rpms to qubes yum repo"
  7. @echo "make update-repo-unstable -- same, but to -testing repo"
  8. @echo "make update-repo-installer -- copy dom0 rpms to installer repo"
  9. rpms:
  10. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/qmgr.spec
  11. rpm --addsign $(RPMS_DIR)/x86_64/qubes-manager*$(VERSION)*.rpm
  12. res:
  13. pyrcc4 -o qubesmanager/qrc_resources.py resources.qrc
  14. pyuic4 -o qubesmanager/ui_newappvmdlg.py newappvmdlg.ui
  15. pyuic4 -o qubesmanager/ui_editfwrulesdlg.py editfwrulesdlg.ui
  16. pyuic4 -o qubesmanager/ui_newfwruledlg.py newfwruledlg.ui
  17. update-repo-current:
  18. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current/dom0/rpm/
  19. cd ../yum && ./update_repo.sh
  20. update-repo-unstable:
  21. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/unstable/dom0/rpm/
  22. cd ../yum && ./update_repo.sh
  23. update-repo-installer:
  24. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../installer/yum/qubes-dom0/rpm/
  25. cd ../installer/yum && ./update_repo.sh