comparison Makefile @ 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 5d3f3d577218
comparison
equal deleted inserted replaced
12816:61c73c9dce1d 12817:372370923b30
7 PREFIX=/usr/local 7 PREFIX=/usr/local
8 export PREFIX 8 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:'
15 @echo ' all - build program and documentation' 16 @echo ' all - build program and documentation'
16 @echo ' install - install program and man pages to PREFIX ($(PREFIX))' 17 @echo ' install - install program and man pages to PREFIX ($(PREFIX))'
83 test-%: 84 test-%:
84 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@ 85 cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
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
94 # parse them even though they are not marked for translation. 95 # parse them even though they are not marked for translation.
95 # Extracting with an explicit encoding of ISO-8859-1 will make 96 # Extracting with an explicit encoding of ISO-8859-1 will make