From: Bruno Haible Date: Sun, 11 Mar 2001 16:02:43 +0000 (+0000) Subject: Make sure "make dist" updates the gmo files after 'update-po', not before. X-Git-Tag: v0.10.36~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8925539d2e457ba7d01b3bc8d38cafbd37cdf806;p=thirdparty%2Fgettext.git Make sure "make dist" updates the gmo files after 'update-po', not before. --- diff --git a/po/ChangeLog b/po/ChangeLog index bfbb10d5f..af31f8e2b 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,3 +1,11 @@ +2001-03-10 Bruno Haible + + * 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 * Makefile.in.in ($(PACKAGE).pot): Depend on POTFILES.in. diff --git a/po/Makefile.in.in b/po/Makefile.in.in index f4b363698..6bb15eeaf 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -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 \