source:
trunk/third/xml-i18n-tools/xml-i18n-tools.Makefile.patch
@
15545
Revision 15545, 2.1 KB checked in by ghudson, 24 years ago (diff) |
---|
-
Makefile.in.in
old new 14 14 15 15 srcdir = @srcdir@ 16 16 top_srcdir = @top_srcdir@ 17 top_builddir = .. 17 18 VPATH = @srcdir@ 18 19 19 20 prefix = @prefix@ … … 35 36 GMSGFMT = PATH=../src:$$PATH @GMSGFMT@ 36 37 MSGFMT = @MSGFMT@ 37 38 XGETTEXT = PATH=../src:$$PATH @XGETTEXT@ 38 MSGMERGE = PATH=../src:$$PATH msgmerge 39 XML_I18N_UPDATE = @XML_I18N_UPDATE@ 40 XML_I18N_EXTRACT = @XML_I18N_EXTRACT@ 41 42 MSGMERGE = XML_I18N_EXTRACT=$(XML_I18N_EXTRACT) $(XML_I18N_UPDATE) --dist 43 GENPOT = XML_I18N_EXTRACT=$(XML_I18N_EXTRACT) $(XML_I18N_UPDATE) --pot 44 39 45 40 46 DEFS = @DEFS@ 41 47 CFLAGS = @CFLAGS@ … … 49 55 POFILES = @POFILES@ 50 56 GMOFILES = @GMOFILES@ 51 57 DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \ 52 stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) 58 stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES) $(XML_I18N_UPDATE) $(XML_I18N_EXTRACT) 53 59 54 60 POTFILES = \ 55 61 … … 85 91 all-no: 86 92 87 93 $(srcdir)/$(PACKAGE).pot: $(POTFILES) 88 $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ 89 --add-comments --keyword=_ --keyword=N_ \ 90 --files-from=$(srcdir)/POTFILES.in \ 91 && test ! -f $(PACKAGE).po \ 92 || ( rm -f $(srcdir)/$(PACKAGE).pot \ 93 && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) 94 $(GENPOT) 94 95 95 96 $(srcdir)/cat-id-tbl.c: stamp-cat-id; @: 96 97 $(srcdir)/stamp-cat-id: $(PACKAGE).pot … … 216 217 for cat in $$catalogs; do \ 217 218 cat=`basename $$cat`; \ 218 219 lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ 219 mv$$lang.po $$lang.old.po; \220 cp $$lang.po $$lang.old.po; \ 220 221 echo "$$lang:"; \ 221 if $(MSGMERGE) $$lang .old.po $(PACKAGE).pot -o $$lang.po; then \222 if $(MSGMERGE) $$lang; then \ 222 223 rm -f $$lang.old.po; \ 223 224 else \ 224 225 echo "msgmerge for $$cat failed!"; \ 225 rm -f $$lang.po; \226 226 mv $$lang.old.po $$lang.po; \ 227 227 fi; \ 228 228 done 229 230 .po: Makefile 231 $(MAKE) $(PACKAGE).pot; 232 PATH=`pwd`/../src:$$PATH; \ 233 echo; printf "$*: "; \ 234 if $(MSGMERGE) $*; then \ 235 rm -f $*.old.po; \ 236 else \ 237 echo "msgmerge for * failed!"; \ 238 mv $*.old.po $*.po; \ 239 fi; \ 240 msgfmt --statistics $*.po; echo; 241 229 242 230 243 POTFILES: POTFILES.in 231 244 ( if test 'x$(srcdir)' != 'x.'; then \
Note: See TracBrowser
for help on using the repository browser.