From 6ade820ca31d377fadaebc4dd240328a4eea75fd Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sun, 6 Nov 2011 14:02:24 +0100 Subject: [PATCH] Introduing the Makefile --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7dbbe1b --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +ifndef DIST +$(error "You must set DIST variable, e.g. DIST=fc14") +endif + +TEMPLATE_NAME := $${DIST/fc/fedora-}-x64 +VERSION := $(shell cat version) + +help: + @echo "make rpms -- generate template rpm" + @echo "make update-repo-installer -- copy newly generated rpm to installer repo" + + +rpms: + @export DIST NO_SIGN + @echo "Building template: $(TEMPLATE_NAME)" + @sudo -E ./fedorize_image fedorized_images/$(TEMPLATE_NAME).img clean_images/packages.list && \ + ./create_symlinks_in_rpms_to_install_dir.sh && \ + sudo -E ./qubeize_image fedorized_images/$(TEMPLATE_NAME).img $(TEMPLATE_NAME) && \ + ./build_template_rpm $(TEMPLATE_NAME) || exit 1; \ + +update-repo-installer: + ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-*.noarch.rpm ../installer/yum/qubes-dom0/rpm + +