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/')
8 SH
= zeroinstall
/zerostore
/_unlzma
11 $(PYTHON
) setup.py build
16 $(PYTHON
) setup.py
install
22 intltool-extract
--type
=gettext
/glade
--update
"$<"
24 locale
/zero-install.pot
: $(PY
) $(GLADE
) $(SH
)
25 xgettext
--language
=Python
--output
=$@
--keyword
=N_
$(PY
) $(GLADE
)
26 xgettext
--language
=Shell
-j
--output
=$@
$(SH
)
28 update-po
: locale
/zero-install.pot
29 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
30 echo
-e
"Merge: $$po: \c"; \
31 msgmerge
-v
-U
$$po locale
/zero-install.pot
; \
35 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
36 echo
-e
"Check: $$po: \c"; \
37 msgfmt
-o
/dev
/null
--statistics
-v
-c
$$po; \
40 $(PYTHON
) setup.py
clean
42 .PHONY
: all install update-po check-po
clean