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
20 SUBDIRS = src daemon appliance fish po examples images \
21 capitests regressions test-tool
56 guestfs.pod guestfs-actions.pod guestfs-structs.pod \
57 guestfish.pod guestfish-actions.pod \
60 libguestfs.pc libguestfs.pc.in \
70 contrib/febootstrap/install.title \
71 contrib/febootstrap/install.html \
72 contrib/febootstrap/install.sh \
77 # guestfs-actions.pod and guestfs-structs are autogenerated. There is
78 # no include mechanism for POD, so we have to do it by hand.
80 man_MANS = guestfs.3 libguestfs.3 guestfish.1
82 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-structs.pod
84 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
85 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
89 -c "Virtualization Support" \
91 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
94 guestfish.1: guestfish.pod guestfish-actions.pod
96 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
100 -c "Virtualization Support" \
102 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
105 noinst_DATA = html/guestfs.3.html html/guestfish.1.html
107 html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
110 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
111 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
115 --title "libguestfs API documentation" \
119 html/guestfish.1.html: guestfish.pod guestfish-actions.pod
122 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
126 --title "guestfish, libguestfs filesystem interactive shell" \
131 html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
134 sh make-recipes.sh recipes/*.sh > $@-t
137 HTMLFILES = html/guestfs.3.html html/guestfish.1.html \
138 html/virt-cat.1.html \
139 html/virt-df.1.html \
140 html/virt-inspector.1.html \
141 html/virt-v2v.1.html \
143 html/pod.css html/recipes.css
145 TEXTFILES = README TODO HACKING
147 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
149 website: $(HTMLFILES) $(TEXTFILES)
150 cp $(HTMLFILES) $(WEBSITEDIR)
151 for f in $(TEXTFILES); do cp $$f $(WEBSITEDIR)/$$f.txt; done
153 # Generate the ChangeLog automatically from the gitlog.
156 ./gitlog-to-changelog > ChangeLog
157 cp ChangeLog $(distdir)/ChangeLog
159 # Update the list of translatable files in po/POTFILES.in.
162 find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
163 grep -v 'perl/blib/' | \
164 grep -v 'capitests/' | \
165 grep -v 'examples/' | \
166 grep -v '/guestfs_protocol.c' | \
167 grep -v '/rc_protocol.c' | \
169 sed 's,^\./,,' > po/POTFILES.in
173 pkgconfigdir = $(libdir)/pkgconfig
174 pkgconfig_DATA = libguestfs.pc
178 CLEANFILES = $(fs_DATA) \
182 guestfs.3 guestfish.1