]>
git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - Makefile
3 POTFILE
= $(PO_PATH
)/webapp.pot
4 POFILES
= $(wildcard $(PO_PATH
)/*/LC_MESSAGES
/*.po
)
6 ALL_FILES
= $(shell find webapp templates
/usr
/lib
*/python
*/site-packages
/tornado
-name
"*.py" -or
-name
"*.html")
11 $(POTFILE
): $(ALL_FILES
)
12 xgettext
--language
=Python
--from-code
=UTF-8
--keyword
=_
:1,2 --keyword
=N_
-d pakfire
-o
$(POTFILE
) \
16 po
: $(POTFILE
) $(patsubst %.po
, %.mo
, $(POFILES
))
20 msgmerge
$@
$(POTFILE
) -o
$@
23 # Compile the translations.