Add rule to build message catalog files.
authorOlof-Joachim Frahm <olof@macrolet.net>
Mon, 19 Jan 2015 20:33:06 +0000 (20:33 +0000)
committerOlof-Joachim Frahm <olof@macrolet.net>
Mon, 19 Jan 2015 20:33:06 +0000 (20:33 +0000)
Makefile

index 570aa8b..96d1b4e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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,8 @@ build/crypto-install: crypto-install build
                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