Makefile 654 B

123456789101112131415161718
  1. RPMS_DIR=rpm/
  2. help:
  3. @echo "make rpms -- generate binary rpm packages"
  4. @echo "make update_repo -- copy newly generated rpms to qubes yum repo"
  5. rpms:
  6. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-appvm.spec
  7. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-netvm.spec
  8. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0.spec
  9. rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/dom0-cleanup.spec
  10. rpm --addsign $(RPMS_DIR)/x86_64/*.rpm
  11. update_repo:
  12. ln -f $(RPMS_DIR)/x86_64/*.rpm ../yum/rpm/
  13. (if [ -d $(RPMS_DIR)/i686 ] ; then ln -f $(RPMS_DIR)/i686/*.rpm ../yum/rpm/; fi)
  14. clean:
  15. (cd appvm && make clean)