]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make sure "make dist" updates the gmo files after 'update-po', not before.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Mar 2001 16:02:43 +0000 (16:02 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Mar 2001 16:02:43 +0000 (16:02 +0000)
po/ChangeLog
po/Makefile.in.in

index bfbb10d5f73770af6b9321a5a58abf4036006f98..af31f8e2b8344a7f29c794b643d8789c00d97313 100644 (file)
@@ -1,3 +1,11 @@
+2001-03-10  Bruno Haible  <haible@clisp.cons.org>
+
+       * Makefile.in.in (update-gmo): New target.
+       (update-po): After updating the po files, also update the gmo files.
+       (dist2): New target.
+       (dist): Depend on dist2, not directly on $(DISTFILES). Only after
+       'update-po' has been executed, it is useful to regenerate $(GMOFILES).
+
 2001-03-09  Bruno Haible  <haible@clisp.cons.org>
 
        * Makefile.in.in ($(PACKAGE).pot): Depend on POTFILES.in.
index f4b36369805f89063e8cbfef0f7e4b2b138deaed..6bb15eeafe00381a24b248fae2468a9452e33724 100644 (file)
@@ -153,8 +153,11 @@ maintainer-clean: distclean
        rm -f $(GMOFILES)
 
 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir: $(DISTFILES)
+dist distdir:
        $(MAKE) update-po
+       @$(MAKE) dist2
+# This is a separate target because 'update-po' must be executed before.
+dist2: $(DISTFILES)
        dists="$(DISTFILES)"; \
        for file in $$dists; do \
          cp -p $(srcdir)/$$file $(distdir); \
@@ -176,6 +179,10 @@ update-po: Makefile
            rm -f $$lang.new.po; \
          fi; \
        done
+       $(MAKE) update-gmo
+
+update-gmo: Makefile $(GMOFILES)
+       @:
 
 POTFILES: POTFILES.in
        ( if test 'x$(srcdir)' != 'x.'; then \