Bump version for release 0.1.0.
[crypto-install.git] / Makefile
index 570aa8b..9d16253 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ run: build/crypto-install
        build/crypto-install
 
 check:
-       pep8 .
+       flake8 .
 
 test:
        ./setup.py test
@@ -12,7 +12,7 @@ test:
 build:
        mkdir build
 
-build/crypto-install: crypto-install 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" \
@@ -20,5 +20,14 @@ build/crypto-install: crypto-install build
                crypto-install > build/crypto-install
        chmod a+rx build/crypto-install
 
+%.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