X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=Makefile.am;h=3cba8bc3d01f0ded5aa55ea7fe9f2230015568b8;hp=0e468b5898e6aaf36f4cdded297d20b7d134e392;hb=bf2b08560f649c22152e4138531ad0b46b4ad1b3;hpb=fd6fecea052b608db0e7b328b1b4a2669258a66f diff --git a/Makefile.am b/Makefile.am index 0e468b5..3cba8bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = src daemon appliance fish po examples images \ - capitests regressions + capitests regressions test-tool if HAVE_OCAML SUBDIRS += ocaml @@ -105,6 +105,7 @@ guestfish.1: guestfish.pod guestfish-actions.pod 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@//' \ @@ -116,6 +117,7 @@ html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod --outfile $@ html/guestfish.1.html: guestfish.pod guestfish-actions.pod + mkdir -p html sed \ -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \ < $< | \ @@ -127,6 +129,7 @@ html/guestfish.1.html: guestfish.pod guestfish-actions.pod # 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 $@ @@ -156,11 +159,13 @@ dist-hook: # Update the list of translatable files in po/POTFILES.in. all-local: cd $(srcdir); \ - find -name '*.c' -o -name '*.pl' -o -name '*.pm' | \ - grep -v '/blib/' | \ - grep -v '/capitests/' | \ - grep -v '/examples/' | \ - sort | \ + find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \ + grep -v 'perl/blib/' | \ + grep -v 'capitests/' | \ + grep -v 'examples/' | \ + grep -v '/guestfs_protocol.c' | \ + grep -v '/rc_protocol.c' | \ + LC_ALL=C sort | \ sed 's,^\./,,' > po/POTFILES.in # Pkgconfig. @@ -170,7 +175,11 @@ pkgconfig_DATA = libguestfs.pc # Make clean. -CLEANFILES = $(fs_DATA) emptydisk pod2htm?.tmp +CLEANFILES = $(fs_DATA) \ + emptydisk \ + pod2htm?.tmp \ + html/*.html \ + guestfs.3 guestfish.1 clean-local: rm -rf initramfs