Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e72187d

Browse files
committed
Make .pot files depend on the makefiles, so that they are updated when the
file or trigger function lists are changed.
1 parent 9173d75 commit e72187d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nls-global.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.18 2009/01/09 12:37:37 petere Exp $
1+
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.19 2009/01/15 09:01:24 petere Exp $
22

33
# Common rules for Native Language Support (NLS)
44
#
@@ -47,10 +47,10 @@ all-po: $(MO_FILES)
4747

4848
ifdef XGETTEXT
4949
ifeq ($(word 1,$(GETTEXT_FILES)),+)
50-
po/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES))
50+
po/$(CATALOG_NAME).pot: $(word 2, $(GETTEXT_FILES)) $(MAKEFILE_LIST)
5151
$(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) -f $<
5252
else
53-
po/$(CATALOG_NAME).pot: $(GETTEXT_FILES)
53+
po/$(CATALOG_NAME).pot: $(GETTEXT_FILES) $(MAKEFILE_LIST)
5454
# Change to srcdir explicitly, don't rely on $^. That way we get
5555
# consistent #: file references in the po files.
5656
$(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $(GETTEXT_FILES)

0 commit comments

Comments
 (0)