Makefile: var for documentation files stable
authorMartin Geisler <mg@lazybytes.net>
Sat, 23 Oct 2010 16:54:45 +0200
branchstable
changeset 12817 372370923b30
parent 12816 61c73c9dce1d
child 12818 019b8e1e0402
Makefile: var for documentation files
Makefile
--- 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