2 # Copyright (C) 2011 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 \
21 extra-find-requires.sh \
27 CLEANFILES = *~ make.sh stamp-supermin
32 bin_SCRIPTS = boot-a-fedora-appliance
34 libexec_SCRIPTS = build-a-fedora-appliance
36 fsdir = $(libdir)/a-fedora-appliance/supermin.d
42 supermin.d/base.img supermin.d/hostfiles: stamp-supermin
43 stamp-supermin: make.sh
45 rm -f $@ supermin.d/base.img supermin.d/hostfiles
49 supermin.d/init.img: init firstboot
52 echo -e "init\nfirstboot" | cpio --quiet -o -H newc > $@-t
55 # This used to be a configure-generated file. However config.status
56 # always touches the destination file, which means the appliance got
60 ./config.status --file=$@-t:$<
64 # For local build/testing.
66 ./build-a-fedora-appliance supermin.d kernel initrd root
69 ./boot-a-fedora-appliance --local
71 # To build an RPM in Koji.
74 --define "_srcrpmdir $$(pwd)" \
75 --define "_sourcedir $$(pwd)" \
76 --define "dist .fc18" a-fedora-appliance.spec
77 koji build --scratch f18 \
78 $(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(RELEASE).fc18.src.rpm
82 --define "_srcrpmdir $$(pwd)" \
83 --define "_sourcedir $$(pwd)" \
84 --define "dist .fc17" a-fedora-appliance.spec
85 koji build --scratch f17 \
86 $(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(RELEASE).fc17.src.rpm