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 capitests
46 guestfs.pod guestfs-actions.pod guestfs-structs.pod \
47 guestfish.pod guestfish-actions.pod \
50 libguestfs.pc libguestfs.pc.in \
60 contrib/febootstrap/install.title \
61 contrib/febootstrap/install.html \
62 contrib/febootstrap/install.sh
65 # guestfs-actions.pod and guestfs-structs are autogenerated. There is
66 # no include mechanism for POD, so we have to do it by hand.
68 man_MANS = guestfs.3 guestfish.1
70 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-structs.pod
72 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
73 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
77 -c "Virtualization Support" \
79 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
82 guestfish.1: guestfish.pod guestfish-actions.pod
84 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
88 -c "Virtualization Support" \
90 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
93 noinst_DATA = html/guestfs.3.html html/guestfish.1.html
95 html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
97 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
98 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
102 --title "libguestfs API documentation" \
106 html/guestfish.1.html: guestfish.pod guestfish-actions.pod
108 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
112 --title "guestfish, libguestfs filesystem interactive shell" \
117 html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
119 sh make-recipes.sh recipes/*.sh > $@-t
122 HTMLFILES = html/guestfs.3.html html/guestfish.1.html \
123 html/virt-inspector.1.html \
125 html/pod.css html/recipes.css
127 TEXTFILES = README TODO HACKING
129 WEBSITEDIR = $(HOME)/d/redhat/et-website/libguestfs
131 website: $(HTMLFILES) $(TEXTFILES)
132 cp $(HTMLFILES) $(WEBSITEDIR)
133 for f in $(TEXTFILES); do cp $$f $(WEBSITEDIR)/$$f.txt; done
135 # Generate the ChangeLog automatically from the gitlog.
138 ./gitlog-to-changelog > ChangeLog
139 cp ChangeLog $(distdir)/ChangeLog
143 pkgconfigdir = $(libdir)/pkgconfig
144 pkgconfig_DATA = libguestfs.pc
148 CLEANFILES = $(fs_DATA) emptydisk pod2htm?.tmp