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
55 guestfs.pod guestfs-actions.pod guestfs-structs.pod \
56 guestfish.pod guestfish-actions.pod \
59 libguestfs.pc libguestfs.pc.in \
68 contrib/febootstrap/install.title \
69 contrib/febootstrap/install.html \
70 contrib/febootstrap/install.sh \
75 # guestfs-actions.pod and guestfs-structs are autogenerated. There is
76 # no include mechanism for POD, so we have to do it by hand.
78 man_MANS = guestfs.3 libguestfs.3 guestfish.1
80 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-structs.pod
82 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
83 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
87 -c "Virtualization Support" \
89 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
92 guestfish.1: guestfish.pod guestfish-actions.pod
94 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
98 -c "Virtualization Support" \
100 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
103 noinst_DATA = html/guestfs.3.html html/guestfish.1.html
105 html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
108 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
109 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
113 --title "libguestfs API documentation" \
117 html/guestfish.1.html: guestfish.pod guestfish-actions.pod
120 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
124 --title "guestfish, libguestfs filesystem interactive shell" \
129 html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
132 sh make-recipes.sh recipes/*.sh > $@-t
135 HTMLFILES = html/guestfs.3.html html/guestfish.1.html \
136 html/virt-cat.1.html \
137 html/virt-df.1.html \
138 html/virt-inspector.1.html \
139 html/virt-v2v.1.html \
141 html/pod.css html/recipes.css
143 TEXTFILES = README TODO HACKING
145 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
147 website: $(HTMLFILES) $(TEXTFILES)
148 cp $(HTMLFILES) $(WEBSITEDIR)
149 for f in $(TEXTFILES); do cp $$f $(WEBSITEDIR)/$$f.txt; done
151 # Generate the ChangeLog automatically from the gitlog.
154 $(top_srcdir)/build-aux/gitlog-to-changelog > ChangeLog
155 cp ChangeLog $(distdir)/ChangeLog
157 # Update the list of translatable files in po/POTFILES.in.
160 find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
161 grep -v 'perl/blib/' | \
162 grep -v 'capitests/' | \
163 grep -v 'examples/' | \
164 grep -v '/guestfs_protocol.c' | \
165 grep -v '/rc_protocol.c' | \
167 sed 's,^\./,,' > po/POTFILES.in
171 pkgconfigdir = $(libdir)/pkgconfig
172 pkgconfig_DATA = libguestfs.pc
176 CLEANFILES = $(fs_DATA) \
180 guestfs.3 guestfish.1