Bump version for release 0.1.0.
[crypto-install.git] / Makefile
1 all: check test build/crypto-install
2
3 run: build/crypto-install
4         build/crypto-install
5
6 check:
7         flake8 .
8
9 test:
10         ./setup.py test
11
12 build:
13         mkdir build
14
15 build/crypto-install: crypto-install build locale/*/LC_MESSAGES/crypto-install.mo
16         sed \
17                 -e "s/GIT-TAG/`git describe --abbrev=0 --tags`/g" \
18                 -e "s/GIT-COMMIT/`git rev-parse --short=7 HEAD`/g" \
19                 -e "s/GIT-BRANCH/`git rev-parse --abbrev-ref HEAD`/g" \
20                 crypto-install > build/crypto-install
21         chmod a+rx build/crypto-install
22
23 %.mo: %.po
24         msgfmt -o $@ $<
25
26 locale/crypto-install.pot: crypto-install
27         xgettext -L Python -o $@ $<
28
29 %.po: locale/crypto-install.pot
30         msgmerge -U $@ $<
31
32 clean:
33         rm -rf build