5 MO
= $(shell find locale
-name
'*.po' | sed
-e
's/\.po/\.mo/')
6 PY
= $(shell find zeroinstall
-name
'*.py')
7 GLADE
= $(shell find zeroinstall
-name
'*.glade' | sed
-e
's/\.glade/&.h/')
10 $(PYTHON
) setup.py build
13 $(PYTHON
) setup.py
install
19 intltool-extract
--type
=gettext
/glade
--update
"$<"
21 locale
/zero-install.pot
: $(PY
) $(GLADE
)
22 xgettext
--language
=Python
--output
=$@
--keyword
=_
--keyword
=N_
$^
24 update-po
: locale
/zero-install.pot
25 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
26 echo
-e
"Merge: $$po: \c"; \
27 msgmerge
-v
-U
$$po locale
/zero-install.pot
; \
31 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
32 echo
-e
"Check: $$po: \c"; \
33 msgfmt
-o
/dev
/null
--statistics
-v
-c
$$po; \
36 $(PYTHON
) setup.py
clean
38 .PHONY
: all install update-po check-po
clean