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" \
crypto-install > build/crypto-install
chmod a+rx build/crypto-install
+locale/*/LC_MESSAGES/crypto-install.mo: locale/*/LC_MESSAGES/crypto-install.po
+ msgfmt $<
+
clean:
rm -rf build