diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -5,10 +5,30 @@ VERSION:=$(TRAVIS_BRANCH) OS:=$(shell uname) ARCH:=$(shell uname -m) -dist: distclean +dist: distclean locales bin/build-dist $(EXTENSIONS) cp *.inx dist + mv locales dist/bin cd dist; tar zcf ../inkstitch-$(VERSION)-$(OS)-$(ARCH).tar.gz * distclean: rm -rf build dist *.spec *.tar.gz + +messages.po: embroider*.py inkstitch.py + rm -f messages.po + xgettext embroider*.py inkstitch.py + +.PHONY: locales +locales: + # message files will look like this: + # translations/messages-en_US.po + if ls translations/*.po > /dev/null 2>&1; then \ + for po in translations/*.po; do \ + lang=$${po%.po}; \ + lang=$${lang#messages-}; \ + mkdir -p locales/$$lang/LC_MESSAGES/; \ + msgfmt $$po -o locales/$$lang/LC_MESSAGES/inkstitch.mo; \ + done; \ + else \ + mkdir locales; \ + fi |
