Pull in febootstrap-supermin-helper (C version) from libguestfs.
[febootstrap.git] / Makefile.am
1 # febootstrap Makefile.am
2 # (C) Copyright 2009-2010 Red Hat Inc.
3 #
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.
8 #
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.
13 #
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.
17 #
18 # Written by Richard W.M. Jones <rjones@redhat.com>
19
20 ACLOCAL_AMFLAGS = -I m4
21
22 SUBDIRS = lib examples
23
24 bin_SCRIPTS = \
25         febootstrap \
26         febootstrap-run \
27         febootstrap-install \
28         febootstrap-minimize \
29         febootstrap-to-initramfs \
30         febootstrap-to-supermin
31 bin_PROGRAMS = \
32         febootstrap-supermin-helper
33 DISTCLEANFILES = $(bin_SCRIPTS)
34
35 febootstrap: febootstrap.sh
36         rm -f $@
37         cp $< $@-t
38         chmod 0555 $@-t
39         mv $@-t $@
40
41 febootstrap-run: febootstrap-run.sh
42         rm -f $@
43         cp $< $@-t
44         chmod 0555 $@-t
45         mv $@-t $@
46
47 febootstrap-install: febootstrap-install.sh
48         rm -f $@
49         cp $< $@-t
50         chmod 0555 $@-t
51         mv $@-t $@
52
53 febootstrap-minimize: febootstrap-minimize.sh
54         rm -f $@
55         cp $< $@-t
56         chmod 0555 $@-t
57         mv $@-t $@
58
59 febootstrap-to-initramfs: febootstrap-to-initramfs.sh
60         rm -f $@
61         cp $< $@-t
62         chmod 0555 $@-t
63         mv $@-t $@
64
65 febootstrap-to-supermin: febootstrap-to-supermin.sh
66         rm -f $@
67         cp $< $@-t
68         chmod 0555 $@-t
69         mv $@-t $@
70
71 febootstrap_supermin_helper_SOURCES = febootstrap-supermin-helper.c
72 febootstrap_supermin_helper_CFLAGS = -Wall -Ilib
73 febootstrap_supermin_helper_LDADD = $(LTLIBINTL) -Llib -lgnu
74
75 man_MANS = \
76         febootstrap.8 \
77         febootstrap-run.8 \
78         febootstrap-install.8 \
79         febootstrap-minimize.8 \
80         febootstrap-to-initramfs.8 \
81         febootstrap-to-supermin.8 \
82         febootstrap-supermin-helper.8
83
84 if HAVE_PERLDOC
85
86 febootstrap.8: febootstrap.pod
87         pod2man \
88           --section 8 \
89           -c "Virtualization Support" \
90           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
91           $< > $@
92
93 febootstrap.txt: febootstrap.pod
94         pod2text $< > $@
95
96 febootstrap-run.8: febootstrap-run.pod
97         pod2man \
98           --section 8 \
99           -c "Virtualization Support" \
100           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
101           $< > $@
102
103 febootstrap-run.txt: febootstrap-run.pod
104         pod2text $< > $@
105
106 febootstrap-install.8: febootstrap-install.pod
107         pod2man \
108           --section 8 \
109           -c "Virtualization Support" \
110           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
111           $< > $@
112
113 febootstrap-install.txt: febootstrap-install.pod
114         pod2text $< > $@
115
116 febootstrap-minimize.8: febootstrap-minimize.pod
117         pod2man \
118           --section 8 \
119           -c "Virtualization Support" \
120           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
121           $< > $@
122
123 febootstrap-minimize.txt: febootstrap-minimize.pod
124         pod2text $< > $@
125
126 febootstrap-to-initramfs.8: febootstrap-to-initramfs.pod
127         pod2man \
128           --section 8 \
129           -c "Virtualization Support" \
130           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
131           $< > $@
132
133 febootstrap-to-initramfs.txt: febootstrap-to-initramfs.pod
134         pod2text $< > $@
135
136 febootstrap-to-supermin.8: febootstrap-to-supermin.pod
137         pod2man \
138           --section 8 \
139           -c "Virtualization Support" \
140           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
141           $< > $@
142
143 febootstrap-to-supermin.txt: febootstrap-to-supermin.pod
144         pod2text $< > $@
145
146 febootstrap-supermin-helper.8: febootstrap-supermin-helper.pod
147         pod2man \
148           --section 8 \
149           -c "Virtualization Support" \
150           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
151           $< > $@
152
153 febootstrap-supermin-helper.txt: febootstrap-supermin-helper.pod
154         pod2text $< > $@
155
156 endif
157
158 EXTRA_DIST = \
159         fakechroot-2.8-relchroot.patch \
160         fakechroot-svn-no-dup-envs.patch \
161         febootstrap.8 febootstrap.txt febootstrap.pod \
162           febootstrap.sh \
163         febootstrap-run.8 febootstrap-run.txt febootstrap-run.pod \
164           febootstrap-run.sh \
165         febootstrap-install.8 febootstrap-install.txt febootstrap-install.pod \
166           febootstrap-install.sh \
167         febootstrap-minimize.8 febootstrap-minimize.txt \
168           febootstrap-minimize.pod \
169           febootstrap-minimize.sh \
170         febootstrap-to-initramfs.8 febootstrap-to-initramfs.txt \
171           febootstrap-to-initramfs.pod \
172           febootstrap-to-initramfs.sh \
173         febootstrap-to-supermin.8 febootstrap-to-supermin.txt \
174           febootstrap-to-supermin.pod \
175           febootstrap-to-supermin.sh \
176         febootstrap-supermin-helper.8 febootstrap-supermin-helper.txt \
177           febootstrap-supermin-helper.pod \
178         m4/gnulib-cache.m4