Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. RPMS_DIR=rpm/
  2. VERSION_DOM0 := $(shell cat version_dom0)
  3. VERSION_VAIO_FIXES := $(shell cat version_vaio_fixes)
  4. VERSION_VM := $(shell cat version_vm)
  5. help:
  6. @echo "make rpms -- generate binary rpm packages"
  7. @echo "make update-repo-current -- copy newly generated rpms to qubes yum repo"
  8. @echo "make update-repo-current-testing -- same, but to -current-testing repo"
  9. @echo "make update-repo-unstable -- same, but to -testing repo"
  10. @echo "make update-repo-installer -- copy dom0 rpms to installer repo"
  11. @echo "make clean -- cleanup"
  12. rpms:
  13. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec
  14. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0.spec
  15. rpm --addsign \
  16. $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*.rpm \
  17. $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*.rpm
  18. rpms-vaio-fixes:
  19. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0-vaio-fixes.spec
  20. rpm --addsign $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*.rpm
  21. update-repo-current:
  22. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/current/dom0/rpm/
  23. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/current/dom0/rpm/
  24. for vmrepo in ../yum/current-release/current/vm/* ; do \
  25. dist=$$(basename $$vmrepo) ;\
  26. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\
  27. done
  28. update-repo-current-testing:
  29. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/current-testing/dom0/rpm/
  30. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/current-testing/dom0/rpm/
  31. for vmrepo in ../yum/current-release/current-testing/vm/* ; do \
  32. dist=$$(basename $$vmrepo) ;\
  33. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\
  34. done
  35. update-repo-unstable:
  36. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/unstable/dom0/rpm/
  37. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/unstable/dom0/rpm/
  38. for vmrepo in ../yum/current-release/unstable/vm/* ; do \
  39. dist=$$(basename $$vmrepo) ;\
  40. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION_VM)*$$dist*.rpm $$vmrepo/rpm/ ;\
  41. done
  42. update-repo-installer:
  43. ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-*$(VERSION_DOM0)*fc13*.rpm ../installer/yum/qubes-dom0/rpm/
  44. clean:
  45. make -C dom0/qmemman clean
  46. make -C dom0/restore clean
  47. make -C misc clean
  48. make -C qrexec clean
  49. make -C u2mfn clean
  50. make -C vchan clean