changeset 12817:372370923b30 stable

Makefile: var for documentation files
author Martin Geisler <mg@lazybytes.net>
date Sat, 23 Oct 2010 16:54:45 +0200
parents 61c73c9dce1d
children 019b8e1e0402
files Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Oct 23 16:53:25 2010 +0200
+++ b/Makefile	Sat Oct 23 16:54:45 2010 +0200
@@ -9,6 +9,7 @@
 PYTHON=python
 PURE=
 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
+DOCFILES=mercurial/help/*.txt
 
 help:
 	@echo 'Commonly used make targets:'
@@ -85,9 +86,9 @@
 
 update-pot: i18n/hg.pot
 
-i18n/hg.pot: $(PYFILES) mercurial/help/*.txt
+i18n/hg.pot: $(PYFILES) $(DOCFILES)
 	$(PYTHON) i18n/hggettext mercurial/commands.py \
-	  hgext/*.py hgext/*/__init__.py mercurial/help/*.txt > i18n/hg.pot
+	  hgext/*.py hgext/*/__init__.py $(DOCFILES) > i18n/hg.pot
         # All strings marked for translation in Mercurial contain
         # ASCII characters only. But some files contain string
         # literals like this '\037\213'. xgettext thinks it has to