Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. RPMS_DIR=rpm/
  2. VERSION := $(shell cat version)
  3. DIST_DOM0 ?= fc18
  4. help:
  5. @echo "make rpms -- generate binary rpm packages"
  6. @echo "make rpms-vm -- generate binary rpm packages for VM"
  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: rpms-vm
  13. rpms-vm:
  14. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm.spec
  15. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-doc.spec
  16. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-vm-kernel-placeholder.spec
  17. rpm --addsign \
  18. $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION)*.rpm \
  19. $(RPMS_DIR)/x86_64/qubes-core-vm-doc-*$(VERSION)*.rpm \
  20. $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*.rpm
  21. rpms-dom0:
  22. @true
  23. update-repo-current:
  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)*$$dist*.rpm $$vmrepo/rpm/ ;\
  27. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\
  28. ln -f $(RPMS_DIR)/x86_64/qubes-core-libs-$(VERSION_LIBS)*$$dist*.rpm $$vmrepo/rpm/;\
  29. done
  30. update-repo-current-testing:
  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)*$$dist*.rpm $$vmrepo/rpm/ ;\
  34. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\
  35. ln -f $(RPMS_DIR)/x86_64/qubes-core-libs-$(VERSION_LIBS)*$$dist*.rpm $$vmrepo/rpm/;\
  36. done
  37. update-repo-unstable:
  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)*$$dist*.rpm $$vmrepo/rpm/ ;\
  41. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\
  42. ln -f $(RPMS_DIR)/x86_64/qubes-core-libs-$(VERSION_LIBS)*$$dist*.rpm $$vmrepo/rpm/;\
  43. done
  44. update-repo-template:
  45. for vmrepo in ../template-builder/yum_repo_qubes/* ; do \
  46. dist=$$(basename $$vmrepo) ;\
  47. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-*$(VERSION)*$$dist*.rpm $$vmrepo/rpm/ ;\
  48. ln -f $(RPMS_DIR)/x86_64/qubes-core-vm-kernel-placeholder-*$$dist*.rpm $$vmrepo/rpm/ ;\
  49. done
  50. clean:
  51. make -C dom0/qmemman clean
  52. make -C dom0/restore clean
  53. make -C misc clean
  54. make -C qrexec clean
  55. make -C u2mfn clean
  56. make -C vchan -f Makefile.linux clean