build: Don't try to rebuild po-docs/<lang> if no po4a.
authorMaxim Koltsov <kolmax94@gmail.com>
Mon, 8 Nov 2010 15:10:14 +0000 (15:10 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 18 Nov 2010 11:30:23 +0000 (11:30 +0000)
(cherry picked from commit e5ec461c67820f050b049b41a630069f0efe96d1)

po-docs/ja/Makefile.am

index 83a2340..0082288 100644 (file)
@@ -41,10 +41,10 @@ EXTRA_DIST = \
        libguestfs-test-tool.pod \
        $(wildcard virt-*.pl)
 
-all-local: $(MANPAGES)
-
 if HAVE_PO4A
 
+all-local: $(MANPAGES)
+
 guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod
        sed \
          -e '/@ACTIONS@/rguestfs-actions.pod' \
@@ -95,6 +95,10 @@ virt-%.1: virt-%.pl
          --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
          $< > $@-t && mv $@-t $@
 
+else
+
+all-local:
+
 endif
 
 # XXX Can automake do this properly?