]> git.saurik.com Git - bison.git/blobdiff - Makefile.maint
* Makefile.maint: Sync. again with CVS Autoconf.
[bison.git] / Makefile.maint
index d672b30b52ef73a8e320b3c3e8ec6f3659cec4e5..d3a34e02e49d5b1e75927e80c0209b6c6b24747a 100644 (file)
@@ -58,13 +58,17 @@ move_if_change ?= move-if-change
 # ------------------- #
 
 po_repo = http://www.iro.umontreal.ca/contrib/po/maint/$(PACKAGE)
-.PHONY po-update:
-po-update:
+.PHONY: do-po-update po-update
+do-po-update:
        cd $(srcdir)/po && wget -r -l1 -nd --no-parent -A '*.po' $(po_repo)
        rm $(srcdir)/po/index.html
-       cd po && make update-po
-       make po-check
+       cd po && $(MAKE) update-po
+       $(MAKE) po-check
 
+po-update:
+       if test -d "po"; then \
+         $(MAKE) do-po-update; \
+       fi
 
 # -------------------------- #
 # Updating GNU build tools.  #