noinst_DATA = html/guestfs.3.html html/guestfish.1.html
html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
+ mkdir -p html
sed \
-e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
-e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
--outfile $@
html/guestfish.1.html: guestfish.pod guestfish-actions.pod
+ mkdir -p html
sed \
-e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
< $< | \
# Recipes web page.
html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
+ mkdir -p html
rm -f $@ $@-t
sh make-recipes.sh recipes/*.sh > $@-t
mv $@-t $@
# Make clean.
-CLEANFILES = $(fs_DATA) emptydisk pod2htm?.tmp
+CLEANFILES = $(fs_DATA) \
+ emptydisk \
+ pod2htm?.tmp \
+ $(HTMLFILES) \
+ $(man_MANS)
clean-local:
rm -rf initramfs
Makefile-pl: Makefile.PL
perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
-CLEANFILES = Makefile-pl
+# No! Otherwise it is deleted before the clean-local rule runs.
+#CLEANFILES = Makefile-pl
clean-local:
-$(MAKE) -f Makefile-pl clean
+ rm -f Makefile-pl
install-data-hook:
$(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install
build/fish/rc_protocol.c
+build/src/guestfs_protocol.c
cat/virt-cat.pl
daemon/augeas.c
daemon/blockdev.c
src/guestfs-actions.c
src/guestfs-bindtests.c
src/guestfs.c
-src/guestfs_protocol.c
v2v/virt-v2v.pl
EXTRA_DIST = \
guestfs_protocol.x \
- guestfs_protocol.c \
- guestfs_protocol.h \
MAX_PROC_NR \
stamp-generator \
generator.ml
$(BUILT_SOURCES): stamp-generator
+CLEANFILES = guestfs_protocol.c guestfs_protocol.h
+
# From the libtool info file, with comments:
#
# | 1. Start with version information of `0:0:0' for each libtool library.
if HAVE_RPCGEN
guestfs_protocol.c: guestfs_protocol.x
- rm -f $@-t
+ rm -f $@-t $@-t2
$(RPCGEN) -c -o $@-t $<
- mv $@-t $@
+ sed 's,\.\./\.\./src/,,' < $@-t > $@-t2
+ rm $@-t
+ mv $@-t2 $@
guestfs_protocol.h: guestfs_protocol.x
rm -f $@-t