2 # Copyright (C) 2011-2014 Red Hat Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 a-fedora-appliance.spec \
26 CLEANFILES = *~ make.sh stamp-supermin
29 rm -rf supermin.d appliance.d
31 bin_SCRIPTS = boot-a-fedora-appliance
33 libexec_SCRIPTS = build-a-fedora-appliance
35 fsdir = $(libdir)/a-fedora-appliance/supermin.d
37 supermin.d/base.tar.gz \
38 supermin.d/init.tar.gz \
41 supermin.d/base.tar.gz supermin.d/packages: stamp-supermin
42 stamp-supermin: make.sh
44 rm -f $@ supermin.d/base.tar.gz supermin.d/packages
48 supermin.d/init.tar.gz: init firstboot
52 # This used to be a configure-generated file. However config.status
53 # always touches the destination file, which means the appliance got
57 ./config.status --file=$@-t:$<
61 # For local build/testing.
63 ./build-a-fedora-appliance supermin.d appliance.d
66 ./boot-a-fedora-appliance --local
68 # To build an RPM in Koji.
71 --define "_srcrpmdir $$(pwd)" \
72 --define "_sourcedir $$(pwd)" \
73 --define "dist .fc18" a-fedora-appliance.spec
74 koji build --scratch f18 \
75 $(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(RELEASE).fc18.src.rpm
79 --define "_srcrpmdir $$(pwd)" \
80 --define "_sourcedir $$(pwd)" \
81 --define "dist .fc17" a-fedora-appliance.spec
82 koji build --scratch f17 \
83 $(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(RELEASE).fc17.src.rpm