projects
/
crypto-install.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump version for release 0.1.0.
[crypto-install.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
abcce2f
..
9d16253
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,10
+1,10
@@
-all: check test build/crypto-install.py
+all: check test build/crypto-install
-run: build/crypto-install.py
- build/crypto-install.py
+run: build/crypto-install
+ build/crypto-install
check:
check:
- pep8 .
+ flake8 .
test:
./setup.py test
test:
./setup.py test
@@
-12,13
+12,22
@@
test:
build:
mkdir build
build:
mkdir build
-build/crypto-install.py: crypto-install.py 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" \
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
- chmod a+rx build/crypto-install.py
+ 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
clean:
rm -rf build