Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: rpms-dom0
  10. rpms-vm:
  11. rpms-dom0:
  12. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/qmgr.spec
  13. rpm --addsign $(RPMS_DIR)/x86_64/qubes-manager*$(VERSION)*.rpm
  14. res:
  15. pyrcc4 -o qubesmanager/resources_rc.py resources.qrc
  16. pyuic4 -o qubesmanager/ui_mainwindow.py mainwindow.ui
  17. pyuic4 -o qubesmanager/ui_newappvmdlg.py newappvmdlg.ui
  18. pyuic4 -o qubesmanager/ui_newfwruledlg.py newfwruledlg.ui
  19. pyuic4 -o qubesmanager/ui_multiselectwidget.py multiselectwidget.ui
  20. pyuic4 -o qubesmanager/ui_settingsdlg.py settingsdlg.ui
  21. pyuic4 -o qubesmanager/ui_restoredlg.py restoredlg.ui
  22. pyuic4 -o qubesmanager/ui_backupdlg.py backupdlg.ui
  23. pyuic4 -o qubesmanager/ui_globalsettingsdlg.py globalsettingsdlg.ui
  24. pyuic4 -o qubesmanager/ui_logdlg.py logdlg.ui
  25. update-repo-current:
  26. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current/dom0/rpm/
  27. update-repo-current-testing:
  28. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current-testing/dom0/rpm/
  29. update-repo-unstable:
  30. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/unstable/dom0/rpm/
  31. update-repo-installer:
  32. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../installer/yum/qubes-dom0/rpm/
  33. clean: