From 560602a3f859d6f00a5dafe4bd6b89517dded916 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 29 Sep 2011 09:44:36 -0400 Subject: [PATCH] Generate gettext catalog only from source files. Otherwise the catalog is considered out of date even from a freshly unpacked tarball. --- Makefile.am | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 638b071..0632878 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,9 +48,6 @@ cdecl99_SOURCES = src/cdecl99.c cdecl99_LDADD = libcdecl.la libgnu.la $(LTLIBINTL) $(LTLIBREADLINE) $(cdecl99_OBJECTS): $(gnulib_headers) -# Sources that may contain translatable strings. -POTSOURCES = $(SOURCES) src/errtab.h - src/parse.lo: src/scan.h src/scan.lo: src/parse.h src/parse-decl.lo: src/scan.h src/parse.h @@ -82,9 +79,12 @@ XGETTEXT_OPTS = -D $(builddir) -D $(srcdir) --from-code=utf-8 \ --msgid-bugs-address=$(PACKAGE_BUGREPORT) \ --keyword=_ --keyword=N_ -po/$(PACKAGE).pot: $(POTSOURCES) - $(AM_V_at)$(MKDIR_P) $(@D) - $(AM_V_GEN)$(XGETTEXT) $(XGETTEXT_OPTS) -o $@ $(POTSOURCES) +po/$(PACKAGE).pot: $(SOURCES) src/errors.lst + $(AM_V_at) $(MKDIR_P) $(@D) + $(AM_V_GEN) $(XGETTEXT) $(XGETTEXT_OPTS) -o $@.tmp $(SOURCES) + $(AM_V_at) $(XGETTEXT) $(XGETTEXT_OPTS) --omit-header -Lc \ + -ajo $@.tmp src/errors.lst + $(AM_V_at) mv -f $@.tmp $@ .po.mo: $(AM_V_at)$(MKDIR_P) $(@D) -- 2.43.2