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