TODO file added with some ideas.
[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-minimize \
25         febootstrap-to-initramfs
26
27 febootstrap: febootstrap.sh
28         rm -f $@
29         cp $< $@-t
30         chmod 0555 $@-t
31         mv $@-t $@
32
33 febootstrap-minimize: febootstrap-minimize.sh
34         rm -f $@
35         cp $< $@-t
36         chmod 0555 $@-t
37         mv $@-t $@
38
39 febootstrap-to-initramfs: febootstrap-to-initramfs.sh
40         rm -f $@
41         cp $< $@-t
42         chmod 0555 $@-t
43         mv $@-t $@
44
45 man_MANS = \
46         febootstrap.8 \
47         febootstrap-minimize.8 \
48         febootstrap-to-initramfs.8
49
50 if HAVE_PERLDOC
51
52 febootstrap.8: febootstrap.pod
53         pod2man \
54           --section 8 \
55           -c "Virtualization Support" \
56           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
57           $< > $@
58
59 febootstrap.txt: febootstrap.pod
60         pod2text $< > $@
61
62 febootstrap-minimize.8: febootstrap-minimize.pod
63         pod2man \
64           --section 8 \
65           -c "Virtualization Support" \
66           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
67           $< > $@
68
69 febootstrap-minimize.txt: febootstrap-minimize.pod
70         pod2text $< > $@
71
72 febootstrap-to-initramfs.8: febootstrap-to-initramfs.pod
73         pod2man \
74           --section 8 \
75           -c "Virtualization Support" \
76           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
77           $< > $@
78
79 febootstrap-to-initramfs.txt: febootstrap-to-initramfs.pod
80         pod2text $< > $@
81
82 endif
83
84 EXTRA_DIST = \
85         febootstrap.spec febootstrap.spec.in \
86         fakechroot-2.8-relchroot.patch \
87         fakechroot-svn-no-dup-envs.patch \
88         febootstrap.8 febootstrap.txt febootstrap.pod \
89           febootstrap.sh \
90         febootstrap-minimize.8 febootstrap-minimize.txt \
91           febootstrap-minimize.pod \
92           febootstrap-minimize.sh \
93         febootstrap-to-initramfs.8 febootstrap-to-initramfs.txt \
94           febootstrap-to-initramfs.pod \
95           febootstrap-to-initramfs.sh