##// END OF EJS Templates
Makefile: var for documentation files
Martin Geisler -
r12817:37237092 stable
parent child Browse files
Show More
@@ -9,6 +9,7 export PREFIX
9 PYTHON=python
9 PYTHON=python
10 PURE=
10 PURE=
11 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
11 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
12 DOCFILES=mercurial/help/*.txt
12
13
13 help:
14 help:
14 @echo 'Commonly used make targets:'
15 @echo 'Commonly used make targets:'
@@ -85,9 +86,9 test-%:
85
86
86 update-pot: i18n/hg.pot
87 update-pot: i18n/hg.pot
87
88
88 i18n/hg.pot: $(PYFILES) mercurial/help/*.txt
89 i18n/hg.pot: $(PYFILES) $(DOCFILES)
89 $(PYTHON) i18n/hggettext mercurial/commands.py \
90 $(PYTHON) i18n/hggettext mercurial/commands.py \
90 hgext/*.py hgext/*/__init__.py mercurial/help/*.txt > i18n/hg.pot
91 hgext/*.py hgext/*/__init__.py $(DOCFILES) > i18n/hg.pot
91 # All strings marked for translation in Mercurial contain
92 # All strings marked for translation in Mercurial contain
92 # ASCII characters only. But some files contain string
93 # ASCII characters only. But some files contain string
93 # literals like this '\037\213'. xgettext thinks it has to
94 # literals like this '\037\213'. xgettext thinks it has to
General Comments 0
You need to be logged in to leave comments. Login now