X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=po-docs%2Fuk%2FMakefile.am;h=042ea2684c6ac9710077aaaf9fb5ac5ecc833e4b;hb=3f54bd02fcf540f9b4b6edc93f3b6b9c7ba136bd;hp=ebecbe5f4dca38d9c074d4afa01ffc4bf1423d7f;hpb=03459c8fa754e45c7e492b378456e0afac1b0dcb;p=libguestfs.git diff --git a/po-docs/uk/Makefile.am b/po-docs/uk/Makefile.am index ebecbe5..042ea26 100644 --- a/po-docs/uk/Makefile.am +++ b/po-docs/uk/Makefile.am @@ -47,28 +47,36 @@ MANPAGES = \ # size. EXTRA_DIST = \ $(MANPAGES) \ - $(cat ../podfiles) + $(shell for f in `cat ../podfiles`; do basename $$f; done) all-local: $(MANPAGES) guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod - $(top_srcdir)/podwrapper.sh \ + $(top_builddir)/podwrapper.sh \ --section 3 \ --man $@ \ - --insert guestfs-actions.pod:@ACTIONS@ \ - --insert guestfs-availability.pod:@AVAILABILITY@ \ - --insert guestfs-structs.pod:@STRUCTS@ \ + --insert $(srcdir)/guestfs-actions.pod:@ACTIONS@ \ + --insert $(srcdir)/guestfs-availability.pod:@AVAILABILITY@ \ + --insert $(srcdir)/guestfs-structs.pod:@STRUCTS@ \ $< guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod - $(top_srcdir)/podwrapper.sh \ + $(top_builddir)/podwrapper.sh \ --man $@ \ - --insert guestfish-actions.pod:@ACTIONS@ \ - --insert guestfish-commands.pod:@FISH_COMMANDS@ \ + --insert $(srcdir)/guestfish-actions.pod:@ACTIONS@ \ + --insert $(srcdir)/guestfish-commands.pod:@FISH_COMMANDS@ \ $< %.1: %.pod - $(top_srcdir)/podwrapper.sh --man $@ $< + $(top_builddir)/podwrapper.sh --man $@ $< + +%.1: %.pl + $(top_builddir)/podwrapper.sh --man $@ $< + +# Ensure that the first time we build from git, since guestfs.pod +# hasn't been built yet, build it. +guestfs.pod: + if [ ! -f guestfs.pod ]; then make -C .. update-po; fi # XXX Can automake do this properly? install-data-hook: