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 \
47 guestfs.pod guestfs-actions.pod guestfs-structs.pod \
48 guestfish.pod guestfish-actions.pod \
51 libguestfs.pc libguestfs.pc.in \
61 contrib/febootstrap/install.title \
62 contrib/febootstrap/install.html \
63 contrib/febootstrap/install.sh \
68 # guestfs-actions.pod and guestfs-structs are autogenerated. There is
69 # no include mechanism for POD, so we have to do it by hand.
71 man_MANS = guestfs.3 libguestfs.3 guestfish.1
73 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-structs.pod
75 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
76 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
80 -c "Virtualization Support" \
82 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
85 guestfish.1: guestfish.pod guestfish-actions.pod
87 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
91 -c "Virtualization Support" \
93 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
96 noinst_DATA = html/guestfs.3.html html/guestfish.1.html
98 html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
100 -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
101 -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
105 --title "libguestfs API documentation" \
109 html/guestfish.1.html: guestfish.pod guestfish-actions.pod
111 -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
115 --title "guestfish, libguestfs filesystem interactive shell" \
120 html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
122 sh make-recipes.sh recipes/*.sh > $@-t
125 HTMLFILES = html/guestfs.3.html html/guestfish.1.html \
126 html/virt-inspector.1.html \
128 html/pod.css html/recipes.css
130 TEXTFILES = README TODO HACKING
132 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
134 website: $(HTMLFILES) $(TEXTFILES)
135 cp $(HTMLFILES) $(WEBSITEDIR)
136 for f in $(TEXTFILES); do cp $$f $(WEBSITEDIR)/$$f.txt; done
138 # Generate the ChangeLog automatically from the gitlog.
141 ./gitlog-to-changelog > ChangeLog
142 cp ChangeLog $(distdir)/ChangeLog
146 pkgconfigdir = $(libdir)/pkgconfig
147 pkgconfig_DATA = libguestfs.pc
151 CLEANFILES = $(fs_DATA) emptydisk pod2htm?.tmp