2010-04-05 20:58:57 +02:00
|
|
|
RPMS_DIR=rpm/
|
2011-04-04 10:55:25 +02:00
|
|
|
|
|
|
|
VERSION_DOM0 := $(shell cat version_dom0)
|
2011-05-10 11:14:41 +02:00
|
|
|
VERSION_VAIO_FIXES := $(shell cat version_vaio_fixes)
|
2011-04-04 10:55:25 +02:00
|
|
|
VERSION_VM := $(shell cat version_vm)
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
help:
|
2011-04-04 10:55:25 +02:00
|
|
|
@echo "make rpms -- generate binary rpm packages"
|
|
|
|
@echo "make update-repo-current -- copy newly generated rpms to qubes yum repo"
|
2011-05-09 18:40:51 +02:00
|
|
|
@echo "make update-repo-current-testing -- same, but to -current-testing repo"
|
2011-04-04 10:55:25 +02:00
|
|
|
@echo "make update-repo-unstable -- same, but to -testing repo"
|
2011-04-06 15:35:30 +02:00
|
|
|
@echo "make update-repo-installer -- copy dom0 rpms to installer repo"
|
2011-04-04 10:55:25 +02:00
|
|
|
@echo "make clean -- cleanup"
|
2010-04-05 20:58:57 +02:00
|
|
|
|
|
|
|
rpms:
|
2011-03-11 01:38:04 +01:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-commonvm.spec
|
2010-04-05 20:58:57 +02:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-appvm.spec
|
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-netvm.spec
|
2011-03-11 01:38:04 +01:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-proxyvm.spec
|
2010-04-05 20:58:57 +02:00
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0.spec
|
2011-04-04 10:55:25 +02:00
|
|
|
rpm --addsign \
|
2011-05-10 11:14:41 +02:00
|
|
|
$(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*.rpm \
|
2011-04-04 11:25:15 +02:00
|
|
|
$(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*.rpm
|
2010-06-14 23:45:04 +02:00
|
|
|
|
2011-05-10 11:14:41 +02:00
|
|
|
rpms-vaio-fixes:
|
|
|
|
rpmbuild --define "_rpmdir $(RPMS_DIR)" -bb rpm_spec/core-dom0-vaio-fixes.spec
|
|
|
|
rpm --addsign $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*.rpm
|
|
|
|
|
2011-04-04 10:55:25 +02:00
|
|
|
update-repo-current:
|
2011-05-10 11:14:41 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/current/dom0/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/current/dom0/rpm/
|
2011-04-06 14:00:06 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc13*.rpm ../yum/current-release/current/vm/f13/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc14*.rpm ../yum/current-release/current/vm/f14/rpm/
|
2011-04-04 10:55:25 +02:00
|
|
|
cd ../yum && ./update_repo.sh
|
2010-06-14 23:45:04 +02:00
|
|
|
|
2011-05-09 18:40:51 +02:00
|
|
|
update-repo-current-testing:
|
2011-05-10 11:14:41 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/current-testing/dom0/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/current-testing/dom0/rpm/
|
2011-05-09 18:40:51 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc13*.rpm ../yum/current-release/current-testing/vm/f13/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc14*.rpm ../yum/current-release/current-testing/vm/f14/rpm/
|
|
|
|
cd ../yum && ./update_repo.sh
|
|
|
|
|
|
|
|
|
2011-04-04 10:55:25 +02:00
|
|
|
update-repo-unstable:
|
2011-05-10 11:14:41 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-$(VERSION_DOM0)*fc13*.rpm ../yum/current-release/unstable/dom0/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-vaio-fixes-$(VERSION_VAIO_FIXES)*fc13*.rpm ../yum/current-release/unstable/dom0/rpm/
|
2011-04-06 14:00:06 +02:00
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc13*.rpm ../yum/current-release/unstable/vm/f13/rpm/
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-*vm-*$(VERSION_VM)*fc14*.rpm ../yum/current-release/unstable/vm/f14/rpm/
|
2011-04-04 10:55:25 +02:00
|
|
|
cd ../yum && ./update_repo.sh
|
2010-04-05 20:58:57 +02:00
|
|
|
|
2011-04-06 15:35:30 +02:00
|
|
|
update-repo-installer:
|
|
|
|
ln -f $(RPMS_DIR)/x86_64/qubes-core-dom0-*$(VERSION_DOM0)*fc13*.rpm ../installer/yum/qubes-dom0/rpm/
|
|
|
|
cd ../installer/yum && ./update_repo.sh
|
|
|
|
|
2010-04-05 20:58:57 +02:00
|
|
|
clean:
|
|
|
|
(cd appvm && make clean)
|
2010-07-21 13:46:31 +02:00
|
|
|
(cd dom0/restore && make clean)
|
2010-09-15 15:36:04 +02:00
|
|
|
(cd dom0/qmemman && make clean)
|
|
|
|
(cd common && make clean)
|
2011-03-07 16:13:15 +01:00
|
|
|
make -C qrexec clean
|
2011-03-08 12:24:47 +01:00
|
|
|
make -C vchan clean
|