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