5 PY
= $(shell find zeroinstall
-name
'*.py')
6 GLADE
= $(shell find zeroinstall
-name
'*.glade' | sed
-e
's/.glade/&.h/')
9 $(PYTHON
) setup.py build
12 $(PYTHON
) setup.py
install
15 intltool-extract
--type
=gettext
/glade
--update
"$<"
17 locale
/zero-install.pot
: $(PY
) $(GLADE
)
18 xgettext
--language
=Python
--output
=$@
--keyword
=_
--keyword
=N_
$^
20 update-po
: locale
/zero-install.pot
21 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
22 echo
-e
"Merge: $$po: \c"; \
23 msgmerge
-v
-U
$$po locale
/zero-install.pot
; \
27 @for po in locale
/*/LC_MESSAGES
/zero-install.po
; do \
28 echo
-e
"Check: $$po: \c"; \
29 msgfmt
-o
/dev
/null
--statistics
-v
-c
$$po; \
32 $(PYTHON
) setup.py
clean
34 .PHONY
: all install update-po check-po
clean