Added examples subdirectory.
[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 = febootstrap febootstrap-to-initramfs
23
24 febootstrap: febootstrap.sh
25         rm -f $@
26         cp $< $@-t
27         chmod 0555 $@-t
28         mv $@-t $@
29
30 febootstrap-to-initramfs: febootstrap-to-initramfs.sh
31         rm -f $@
32         cp $< $@-t
33         chmod 0555 $@-t
34         mv $@-t $@
35
36 man_MANS = febootstrap.8 febootstrap-to-initramfs.8 febootstrap-fix-root.8
37
38 if HAVE_PERLDOC
39 febootstrap.8: febootstrap.pod
40         pod2man \
41           --section 8 \
42           -c "Virtualization Support" \
43           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
44           $< > $@
45
46 febootstrap.txt: febootstrap.pod
47         pod2text $< > $@
48
49 febootstrap-to-initramfs.8: febootstrap-to-initramfs.pod
50         pod2man \
51           --section 8 \
52           -c "Virtualization Support" \
53           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
54           $< > $@
55
56 febootstrap-to-initramfs.txt: febootstrap-to-initramfs.pod
57         pod2text $< > $@
58
59 febootstrap-fix-root.8: febootstrap-fix-root.pod
60         pod2man \
61           --section 8 \
62           -c "Virtualization Support" \
63           --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
64           $< > $@
65
66 febootstrap-fix-root.txt: febootstrap-fix-root.pod
67         pod2text $< > $@
68 endif
69
70 EXTRA_DIST = \
71         fakechroot-2.8-relchroot.patch \
72         febootstrap.8 febootstrap.txt febootstrap.pod \
73         febootstrap-to-initramfs.8 febootstrap-to-initramfs.txt \
74           febootstrap-to-initramfs.pod \
75         febootstrap-fix-root.8 febootstrap-fix-root.txt \
76           febootstrap-fix-root.pod \
77         febootstrap.sh febootstrap-to-initramfs.sh