Make .pot files depend on the makefiles, so that they are updated when the
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 09:01:24 +0000 (09:01 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 15 Jan 2009 09:01:24 +0000 (09:01 +0000)
file or trigger function lists are changed.

src/nls-global.mk

index 2e00e55e365608ef9e80f692a6a8c2ef4af95cc5..549574ca4700ba4272ea7e781eeb66783a73cc7e 100644 (file)
@@ -47,10 +47,10 @@ all-po: $(MO_FILES)
 
 ifdef XGETTEXT
 ifeq ($(word 1,$(GETTEXT_FILES)),+)
-po/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES))
+po/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES)) $(MAKEFILE_LIST)
        $(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) -f $<
 else
-po/$(CATALOG_NAME).pot: $(GETTEXT_FILES)
+po/$(CATALOG_NAME).pot: $(GETTEXT_FILES) $(MAKEFILE_LIST)
 # Change to srcdir explicitly, don't rely on $^.  That way we get
 # consistent #: file references in the po files.
        $(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $(GETTEXT_FILES)