X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=Makefile;h=9d16253bd99eaf26383d0dae44ff7bca2653304e;hb=HEAD;hp=676a09dddf6ee893d38faa0d3ca4c4a10ec961ef;hpb=566386c4970db990d3ef7dcd8fd610e78d114066;p=crypto-install.git diff --git a/Makefile b/Makefile index 676a09d..9d16253 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,33 @@ -all: build - @sed \ +all: check test build/crypto-install + +run: build/crypto-install + build/crypto-install + +check: + flake8 . + +test: + ./setup.py test + +build: + mkdir build + +build/crypto-install: crypto-install build locale/*/LC_MESSAGES/crypto-install.mo + sed \ -e "s/GIT-TAG/`git describe --abbrev=0 --tags`/g" \ -e "s/GIT-COMMIT/`git rev-parse --short=7 HEAD`/g" \ -e "s/GIT-BRANCH/`git rev-parse --abbrev-ref HEAD`/g" \ - crypto-install.py > build/crypto_install.py + crypto-install > build/crypto-install + chmod a+rx build/crypto-install -build: - mkdir build +%.mo: %.po + msgfmt -o $@ $< + +locale/crypto-install.pot: crypto-install + xgettext -L Python -o $@ $< + +%.po: locale/crypto-install.pot + msgmerge -U $@ $< + +clean: + rm -rf build