diff options
author | bwarsaw <> | 2003-04-22 03:36:17 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-04-22 03:36:17 +0000 |
commit | 6c666927c0a9e4f68afa86d6ad298f54f4f80c88 (patch) | |
tree | 2c1a18eaba69bebe3309245286b2fa9fbb43ac6b /messages/Makefile.in | |
parent | 5469fd6e01b8e059aac762825d38aedd47f64fd4 (diff) | |
download | mailman2-6c666927c0a9e4f68afa86d6ad298f54f4f80c88.tar.gz mailman2-6c666927c0a9e4f68afa86d6ad298f54f4f80c88.tar.xz mailman2-6c666927c0a9e4f68afa86d6ad298f54f4f80c88.zip |
Backporting once again from the trunk.
I18ners please double check (except Tokio). It's always so painful to
resolve conflicts here, I hope I got them right.
Diffstat (limited to '')
-rw-r--r-- | messages/Makefile.in | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/messages/Makefile.in b/messages/Makefile.in index af3b476d..1381a2a8 100644 --- a/messages/Makefile.in +++ b/messages/Makefile.in @@ -44,7 +44,7 @@ CFLAGS= $(OPT) $(DEFS) PACKAGEDIR= $(prefix)/messages SHELL= /bin/sh DIRSETGID= chmod g+s -MSGFMT= msgfmt +MSGFMT= @PYTHON@ ../build/bin/msgfmt.py MSGMERGE= msgmerge # CVS available languages @@ -71,7 +71,7 @@ PROG= @PYTHON@ build/bin/pygettext.py # Rules -all: +all: mofiles catalogs: $(TARGETS) @@ -84,8 +84,7 @@ check: install: doinstall -# we should depend on the .mo files instead of making them! -doinstall: +doinstall: mofiles @for d in $(LANGDIRS); \ do \ dir=$(DESTDIR)$(prefix)/$$d; \ @@ -110,18 +109,20 @@ doinstall: $(INSTALL) -m $(FILEMODE) $$po $$mo $$dir; \ done +mofiles: $(MOFILES) + finish: clean: + -rm -f */LC_MESSAGES/mailman.mo + +potclean: -rm -f marked.files docstring.files + -rm -f Makefile $(POTFILE) -distclean: clean +distclean: clean potclean -rm -f Makefile -catclean: - -rm -f Makefile */LC_MESSAGES/mailman.mo */LC_MESSAGES/mailman.po.old $(POTFILE) - -rm *.pot - marked.files: @echo "Calculating marked input files for pygettext" (cd ..; find Mailman -path '*pythonlib' -prune -o -path '*Commands/cmd_*.py' -prune -o -name '*.py' -print >| messages/$@) @@ -139,7 +140,7 @@ mailman.pot: marked.files docstring.files # .pot file %/LC_MESSAGES/mailman.po: mailman.pot @echo "Merging new template file with existing translations" - -mv $@ $@.old && $(MSGMERGE) -o $@ $@.old mailman.pot + $(MSGMERGE) -U $@ mailman.pot FORCE: |