From 46f206bb1ac3173c728002123d1939333c400529 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Mon, 14 Jun 2010 23:45:04 +0200 Subject: [PATCH] Makefile: new targets: update-repo{-testing} --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d0e3b24..55bd42d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ RPMS_DIR=rpm/ help: @echo "make rpms -- generate binary rpm packages" - @echo "make update_repo -- copy newly generated rpms to qubes yum repo" + @echo "make update-repo -- copy newly generated rpms to qubes yum repo" + @echo "make update-repo-testing -- same, but to -testing repo" rpms: rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-appvm.spec @@ -9,9 +10,17 @@ rpms: rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0.spec rpm --addsign $(RPMS_DIR)/x86_64/*.rpm -update_repo: - ln -f $(RPMS_DIR)/x86_64/*.rpm ../yum/rpm/ - (if [ -d $(RPMS_DIR)/i686 ] ; then ln -f $(RPMS_DIR)/i686/*.rpm ../yum/rpm/; fi) +update-repo: + ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-*.rpm ../yum/r1/dom0/rpm/ + ln -f $(RPMS_DIR)/x86_64/qubes-core-appvm-*.rpm ../yum/r1/appvm/rpm/ + ln -f $(RPMS_DIR)/x86_64/qubes-core-netvm-*.rpm ../yum/r1/netvm/rpm/ + +update-repo-testing: + ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-*.rpm ../yum/r1-testing/dom0/rpm/ + ln -f $(RPMS_DIR)/x86_64/qubes-core-appvm-*.rpm ../yum/r1-testing/appvm/rpm/ + ln -f $(RPMS_DIR)/x86_64/qubes-core-netvm-*.rpm ../yum/r1-testing/netvm/rpm/ + + clean: (cd appvm && make clean)