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 /fish | |
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 'fish')
-rw-r--r-- | fish/Makefile.am | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fish/Makefile.am b/fish/Makefile.am index 2d8c16b8..01ed59c7 100644 --- a/fish/Makefile.am +++ b/fish/Makefile.am @@ -17,6 +17,8 @@ include $(top_srcdir)/subdir-rules.mk +CLEANFILES = stamp-guestfish.pod + bin_PROGRAMS = guestfish generator_built = \ @@ -133,22 +135,20 @@ guestfish.static$(EXEEXT): $(guestfish_OBJECTS) $(guestfish_DEPENDENCIES) $(guestfish_LINK) $(guestfish_OBJECTS) -static $(guestfish_LDADD) $(guestfish_LIBS) $(LIBVIRT_LIBS) $(LIBXML2_LIBS) -ltinfo -lpcre -lhivex -lmagic -lz -lm # Manual page. -# guestfish-actions.pod and guestfish-commands.pod are autogenerated. -# There is no include mechanism for POD, so we have to do it by hand. man_MANS = guestfish.1 - -guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod - sed \ - -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \ - -e '/@FISH_COMMANDS@/rguestfish-commands.pod' -e 's/@FISH_COMMANDS@//' \ - < $< | \ - $(POD2MAN) \ - --section 1 \ - -c "Virtualization Support" \ - --name "guestfish" \ - --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ - > $@ +noinst_DATA = $(top_builddir)/html/guestfish.1.html + +guestfish.1 $(top_builddir)/html/guestfish.1.html: stamp-guestfish.pod + +stamp-guestfish.pod: guestfish.pod guestfish-actions.pod guestfish-commands.pod + $(top_srcdir)/podwrapper.sh \ + --man guestfish.1 \ + --html $(top_builddir)/html/guestfish.1.html \ + --insert guestfish-actions.pod:@ACTIONS@ \ + --insert guestfish-commands.pod:@FISH_COMMANDS@ \ + $< + touch $@ # Bash completion script. |