+2002-01-05 Bruno Haible <bruno@clisp.org>
+
+ * Makefile.in.in ($(DOMAIN).pot-update): Renamed from target
+ $(srcdir)/$(DOMAIN).pot.
+ ($(srcdir)/$(DOMAIN).pot): New rule, which normally does nothing.
+ ($(POFILES)): Depend on $(srcdir)/$(DOMAIN).pot, not on 'force'.
+ (update-po): Update.
+
2002-01-07 Bruno Haible <bruno@clisp.org>
* fr.po: Update from Michel Robitaille <robitail@iro.umontreal.ca>.
all-yes: $(CATALOGS)
all-no:
-# Note: Target 'all' must not depend on target '$(srcdir)/$(DOMAIN).pot',
+# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
# otherwise packages like GCC can not be built if only parts of the source
# have been downloaded.
-$(srcdir)/$(DOMAIN).pot: $(POTFILES) $(srcdir)/POTFILES.in
+$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
--files-from=$(srcdir)/POTFILES.in \
|| ( rm -f $(srcdir)/$(DOMAIN).pot \
&& mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot )
-$(POFILES): force
+$(srcdir)/$(DOMAIN).pot:
+ $(MAKE) $(DOMAIN).pot-update
+
+$(POFILES): $(srcdir)/$(DOMAIN).pot
@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
done
update-po: Makefile
- $(MAKE) $(DOMAIN).pot
+ $(MAKE) $(DOMAIN).pot-update
$(MAKE) $(UPDATEPOFILES)
$(MAKE) update-gmo