X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2FMakefile.am;h=026a561172245a805f611183ada180e8a438ce1a;hb=9bc15f5d98a3a17d465a94f42dc3ffb60c077293;hp=4dd7dfb8a0fa062d32b185cbc583e37bf3450102;hpb=fbc2555903be8c88ad9430d871cf0d27c8fded1e;p=libguestfs.git diff --git a/cat/Makefile.am b/cat/Makefile.am index 4dd7dfb..026a561 100644 --- a/cat/Makefile.am +++ b/cat/Makefile.am @@ -28,6 +28,8 @@ EXTRA_DIST = \ test-virt-ls.sh \ virt-ls.pod +CLEANFILES = stamp-virt-cat.pod stamp-virt-ls.pod stamp-virt-filesystems.pod + bin_PROGRAMS = virt-cat virt-filesystems virt-ls SHARED_SOURCE_FILES = \ @@ -90,50 +92,32 @@ noinst_DATA = \ $(top_builddir)/html/virt-filesystems.1.html \ $(top_builddir)/html/virt-ls.1.html -virt-cat.1: virt-cat.pod - $(POD2MAN) \ - --section 1 \ - -c "Virtualization Support" \ - --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ - $< > $@-t && mv $@-t $@ - -$(top_builddir)/html/virt-cat.1.html: virt-cat.pod - mkdir -p $(top_builddir)/html - cd $(top_builddir) && pod2html \ - --css 'pod.css' \ - --htmldir html \ - --outfile html/$@ \ - $(abs_srcdir)/$< - -virt-filesystems.1: virt-filesystems.pod - $(POD2MAN) \ - --section 1 \ - -c "Virtualization Support" \ - --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ - $< > $@-t && mv $@-t $@ - -$(top_builddir)/html/virt-filesystems.1.html: virt-filesystems.pod - mkdir -p $(top_builddir)/html - cd $(top_builddir) && pod2html \ - --css 'pod.css' \ - --htmldir html \ - --outfile html/$@ \ - $(abs_srcdir)/$< - -virt-ls.1: virt-ls.pod - $(POD2MAN) \ - --section 1 \ - -c "Virtualization Support" \ - --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ - $< > $@-t && mv $@-t $@ - -$(top_builddir)/html/virt-ls.1.html: virt-ls.pod - mkdir -p $(top_builddir)/html - cd $(top_builddir) && pod2html \ - --css 'pod.css' \ - --htmldir html \ - --outfile html/$@ \ - $(abs_srcdir)/$< +virt-cat.1 $(top_builddir)/html/virt-cat.1.html: stamp-virt-cat.pod + +stamp-virt-cat.pod: virt-cat.pod + $(top_srcdir)/podwrapper.sh \ + --man virt-cat.1 \ + --html $(top_builddir)/html/virt-cat.1.html \ + $< + touch $@ + +virt-ls.1 $(top_builddir)/html/virt-ls.1.html: stamp-virt-ls.pod + +stamp-virt-ls.pod: virt-ls.pod + $(top_srcdir)/podwrapper.sh \ + --man virt-ls.1 \ + --html $(top_builddir)/html/virt-ls.1.html \ + $< + touch $@ + +virt-filesystems.1 $(top_builddir)/html/virt-filesystems.1.html: stamp-virt-filesystems.pod + +stamp-virt-filesystems.pod: virt-filesystems.pod + $(top_srcdir)/podwrapper.sh \ + --man virt-filesystems.1 \ + --html $(top_builddir)/html/virt-filesystems.1.html \ + $< + touch $@ # Tests. @@ -145,17 +129,3 @@ TESTS_ENVIRONMENT = \ LIBGUESTFS_PATH=$(top_builddir)/appliance TESTS = test-virt-cat.sh test-virt-filesystems.sh test-virt-ls.sh - -# Build a partly-static binary (for the binary distribution). - -virt-cat.static$(EXEEXT): $(virt_cat_OBJECTS) $(virt_cat_DEPENDENCIES) - $(top_srcdir)/relink-static.sh \ - $(virt_cat_LINK) $(virt_cat_OBJECTS) -static $(virt_cat_LDADD) $(virt_cat_LIBS) $(LIBVIRT_LIBS) $(LIBXML2_LIBS) -lpcre -lhivex -lmagic -lz -lm - -virt-filesystems.static$(EXEEXT): $(virt_filesystems_OBJECTS) $(virt_filesystems_DEPENDENCIES) - $(top_srcdir)/relink-static.sh \ - $(virt_filesystems_LINK) $(virt_filesystems_OBJECTS) -static $(virt_filesystems_LDADD) $(virt_filesystems_LIBS) $(LIBVIRT_LIBS) $(LIBXML2_LIBS) -lpcre -lhivex -lmagic -lz -lm - -virt-ls.static$(EXEEXT): $(virt_ls_OBJECTS) $(virt_ls_DEPENDENCIES) - $(top_srcdir)/relink-static.sh \ - $(virt_ls_LINK) $(virt_ls_OBJECTS) -static $(virt_ls_LDADD) $(virt_ls_LIBS) $(LIBVIRT_LIBS) $(LIBXML2_LIBS) -lpcre -lhivex -lmagic -lz -lm