With --systray, just blink the icon if key confirmation is needed
[zeroinstall.git] / Makefile
blobba0ce0d32cdc94a2bef39d2511ab785454f99b4c
3 PYTHON=python
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/')
9 all: $(MO)
10 $(PYTHON) setup.py build
12 install: all
13 $(PYTHON) setup.py install
15 %.mo: %.po
16 msgfmt -o "$@" "$<"
18 %.glade.h: %.glade
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; \
28 done
30 check-po:
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; \
34 done
35 clean:
36 $(PYTHON) setup.py clean
38 .PHONY: all install update-po check-po clean