Fix quotes conversion to html.
[banana.git] / po / Makefile
1 # Horde .mo files makefile
2 #
3 # $Horde: horde/po/Makefile,v 1.2.2.3 2002/05/20 17:36:22 jan Exp $
4 #
5
6 LANGS:=$(shell ls *.po|sed -e s/\.po$$//)
7
8 all: banana.pot ${LANGS:=.lang}
9
10 clean:
11 rm -f *.po~ *.lang
12
13 banana.pot: ../banana/*.php
14 @echo Parsing Tree for new messages
15 @echo
16 @xgettext --from-code=iso-8859-15 -j -k_b_ -o banana.pot $<
17
18 %.lang: banana.pot ../banana/*.php %.po
19 @echo Generating $(@:.lang=.po)
20 @echo -n ' '
21 @mkdir -p ../locale/$(@:.lang=)/LC_MESSAGES/
22 @msgmerge -U $(@:lang=po) $< 2> /dev/null
23 @msgfmt --statistics -c -v -o ../locale/$(@:.lang=)/LC_MESSAGES/banana.mo $(@:lang=po)
24 @echo
25 @rm -f $(@:lang=po~)
26 @touch $@
27
28