2 # Copyright (C) 2009 Red Hat Inc.
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.
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.
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.
18 ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
20 SUBDIRS = gnulib/lib src daemon appliance fish po examples images \
21 gnulib/tests capitests regressions test-tool
52 guestfs.pod guestfs-actions.pod guestfs-structs.pod \
53 guestfish.pod guestfish-actions.pod \
56 libguestfs.pc libguestfs.pc.in \
65 contrib/febootstrap/install.title \
66 contrib/febootstrap/install.html \
67 contrib/febootstrap/install.sh \
72 # guestfs-actions.pod and guestfs-structs are autogenerated. There is
73 # no include mechanism for POD, so we have to do it by hand.
75 man_MANS = guestfs.3 libguestfs.3 guestfish.1
77 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-structs.pod
79 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
80 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
84 -c "Virtualization Support" \
86 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
89 guestfish.1: guestfish.pod guestfish-actions.pod
91 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
95 -c "Virtualization Support" \
97 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
100 noinst_DATA = html/guestfs.3.html html/guestfish.1.html
102 html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
105 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
106 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
110 --title "libguestfs API documentation" \
114 html/guestfish.1.html: guestfish.pod guestfish-actions.pod
117 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
121 --title "guestfish, libguestfs filesystem interactive shell" \
126 html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
129 sh make-recipes.sh recipes/*.sh > $@-t
132 HTMLFILES = html/guestfs.3.html html/guestfish.1.html \
133 html/virt-cat.1.html \
134 html/virt-df.1.html \
135 html/virt-inspector.1.html \
137 html/pod.css html/recipes.css
139 TEXTFILES = README TODO HACKING
141 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
143 website: $(HTMLFILES) $(TEXTFILES)
144 cp $(HTMLFILES) $(WEBSITEDIR)
145 for f in $(TEXTFILES); do cp $$f $(WEBSITEDIR)/$$f.txt; done
147 # Generate the ChangeLog automatically from the gitlog.
150 $(top_srcdir)/build-aux/gitlog-to-changelog > ChangeLog
151 cp ChangeLog $(distdir)/ChangeLog
153 # Update the list of translatable files in po/POTFILES.in.
156 find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
157 grep -v 'perl/blib/' | \
158 grep -v 'capitests/' | \
159 grep -v 'daemon/lib/' | \
160 grep -v 'daemon/tests/' | \
161 grep -v 'examples/' | \
162 grep -v '/guestfs_protocol.c' | \
163 grep -v '/rc_protocol.c' | \
165 sed 's,^\./,,' > po/POTFILES.in
169 pkgconfigdir = $(libdir)/pkgconfig
170 pkgconfig_DATA = libguestfs.pc
174 CLEANFILES = $(fs_DATA) \
178 guestfs.3 guestfish.1