Use git description if version is not given
[clawsker.git] / po / Makefile
index be57e33f67c5e3d61b2e58eadd8d1aa31ce8a6e8..2228e8d190598ba3a42804aecf32b1e3961b7c86 100644 (file)
@@ -1,16 +1,23 @@
 #
-# Clawsker po makefile
-# $Id$
+# Clawsker po Makefile
+# Copyright 2007-2016 Ricardo Mones <ricardo@mones.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# See COPYING file for license details.
 #
 
 NAME = clawsker
-VERSION = $(shell cat ../VERSION)
+VERSION ?= $(shell git describe)
 PREFIX ?= /usr/local
 DATADIR = ${PREFIX}/share
 LOCALEDIR = ${DATADIR}/locale
 
 XG_ARGS = --keyword=_ --flag=_:1:pass-java-format -L Perl -w 80 --package-name=${NAME} --package-version=${VERSION} --msgid-bugs-address=ricardo@mones.org
-LINGUAS = es sr sr@latin fr it id pt_BR
+LINGUAS = es fr it id nl pt_BR sv nb de ca tr
 
 all: build
 
@@ -20,7 +27,7 @@ ${NAME}.pot.0:
 # remove bogus entry win_title
 update-pot: ${NAME}.pot.0
        head -17 ./${NAME}.pot.0 > ./${NAME}.pot
-       tail -$(shell expr $(shell wc -l < ./${NAME}.pot.0) - 21 ) ./${NAME}.pot.0 >> ./${NAME}.pot
+       tail -$(shell expr $(shell wc -l < ./${NAME}.pot.0) - 22 ) ./${NAME}.pot.0 >> ./${NAME}.pot
        rm -f ./${NAME}.pot.0
 
 %.pox: %.po