Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (30 sloc) 1.122 kb
PYTHON=python
MO = $(shell find share/locale -name '*.po' | sort | sed -e 's/\.po/\.mo/')
PY = $(shell find zeroinstall -name '*.py' | sort)
GTKBUILDER = $(shell find zeroinstall -name '*.ui' | sort | sed -e 's/\.ui/&.h/')
SH = zeroinstall/zerostore/_unlzma
all: translations
$(PYTHON) setup.py build
translations: $(MO)
install: all
$(PYTHON) setup.py install
%.mo: %.po
msgfmt -o "$@" "$<"
%.ui.h: %.ui
intltool-extract --type=gettext/glade --update "$<"
share/locale/zero-install.pot: $(PY) $(GTKBUILDER) $(SH)
xgettext --sort-by-file --language=Python --output=$@ --keyword=N_ $(PY) $(GTKBUILDER)
xgettext --sort-by-file --language=Shell -j --output=$@ $(SH)
update-po: share/locale/zero-install.pot
@for po in share/locale/*/LC_MESSAGES/zero-install.po; do \
echo -e "Merge: $$po: \c"; \
msgmerge -v -U $$po share/locale/zero-install.pot; \
done
check-po:
@for po in share/locale/*/LC_MESSAGES/zero-install.po; do \
echo -e "Check: $$po: \c"; \
msgfmt -o /dev/null --statistics -v -c $$po; \
done
clean:
$(PYTHON) setup.py clean
.PHONY: all install update-po check-po clean
Jump to Line
Something went wrong with that request. Please try again.