Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/resources_rc.py resources.qrc
  14. pyuic4 -o qubesmanager/ui_mainwindow.py mainwindow.ui
  15. pyuic4 -o qubesmanager/ui_newappvmdlg.py newappvmdlg.ui
  16. pyuic4 -o qubesmanager/ui_newfwruledlg.py newfwruledlg.ui
  17. pyuic4 -o qubesmanager/ui_multiselectwidget.py multiselectwidget.ui
  18. pyuic4 -o qubesmanager/ui_settingsdlg.py settingsdlg.ui
  19. pyuic4 -o qubesmanager/ui_restoredlg.py restoredlg.ui
  20. pyuic4 -o qubesmanager/ui_backupdlg.py backupdlg.ui
  21. pyuic4 -o qubesmanager/ui_globalsettingsdlg.py globalsettingsdlg.ui
  22. pyuic4 -o qubesmanager/ui_logdlg.py logdlg.ui
  23. update-repo-current:
  24. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current/dom0/rpm/
  25. update-repo-current-testing:
  26. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/current-testing/dom0/rpm/
  27. update-repo-unstable:
  28. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../yum/current-release/unstable/dom0/rpm/
  29. update-repo-installer:
  30. ln -f $(RPMS_DIR)/x86_64/qubes-manager-*$(VERSION)*.rpm ../installer/yum/qubes-dom0/rpm/
  31. clean: