diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-24 15:19:33 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-24 20:12:08 +0000 |
commit | e1aca6323e33e0dd50e23dc0d638f5789c9188e4 (patch) | |
tree | 2ae931f496aa992108d0f54bb82b8e24685918cc /cat/Makefile.am | |
parent | c1592ac93886e7f39a6017272b2486d3f411d054 (diff) | |
download | libguestfs-e1aca6323e33e0dd50e23dc0d638f5789c9188e4.tar.gz libguestfs-e1aca6323e33e0dd50e23dc0d638f5789c9188e4.tar.xz libguestfs-e1aca6323e33e0dd50e23dc0d638f5789c9188e4.zip |
build: Centralize all POD manipulation in 'podwrapper.sh' script.
Diffstat (limited to 'cat/Makefile.am')
-rw-r--r-- | cat/Makefile.am | 72 |
1 files changed, 28 insertions, 44 deletions
diff --git a/cat/Makefile.am b/cat/Makefile.am index 4dd7dfb8..10a768bf 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. |