From 34ae664db963527aa29ec835cd4a6d7af546505e Mon Sep 17 00:00:00 2001 From: jsm28 Date: Tue, 9 Nov 2004 21:58:43 +0000 Subject: * Makefile.in ($(PACKAGE).pot): New rule. Depend on po/$(PACKAGE).pot. (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. Remove local srcdir path from generated file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90368 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/ChangeLog | 8 ++++++++ libcpp/Makefile.in | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'libcpp') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 85fa04f7038..5a461498767 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,11 @@ +2004-11-09 Joseph S. Myers + + * Makefile.in ($(PACKAGE).pot): New rule. Depend on + po/$(PACKAGE).pot. + (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword + arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. + Remove local srcdir path from generated file. + 2004-11-04 Zack Weinberg Gerald Pfeifer diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in index bd1861c9b4a..8a7a4898365 100644 --- a/libcpp/Makefile.in +++ b/libcpp/Makefile.in @@ -207,14 +207,19 @@ update-po: $(CATALOGS:.gmo=.pox) else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ # Rule for regenerating the message template. +$(PACKAGE).pot: po/$(PACKAGE).pot po/$(PACKAGE).pot: $(libcpp_a_SOURCES) -test -d $(srcdir)/po || mkdir $(srcdir)/po $(XGETTEXT) --default-domain=$(PACKAGE) \ - --keyword=cpp_error,3 --keyword=cpp_errno,3 \ - --keyword=cpp_error_with_line,5 \ + --keyword=_ --keyword=N_ \ + --keyword=cpp_error:3 --keyword=cpp_errno:3 \ + --keyword=cpp_error_with_line:5 \ + --keyword=SYNTAX_ERROR --keyword=SYNTAX_ERROR2 \ --copyright-holder="Free Software Foundation, Inc." \ --msgid-bugs-address="http://gcc.gnu.org/bugs.html" \ - --language=c -o po/$(PACKAGE).pot $^ + --language=c -o po/$(PACKAGE).pot.tmp $^ + sed 's:$(srcdir)/::g' po/$(PACKAGE).pot + rm po/$(PACKAGE).pot.tmp # Tell versions [3.59,3.63) of GNU make to not export all variables. -- cgit v1.2.1