Update year
[clawsker.git] / Makefile
index 0225b231a89639a4b12b34a0bd33e47eeba05a2c..98edc9b22227b1d935fb54d9f5b24901e98e2959 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
 #
 
 NAME = clawsker
-VERSION ?= 1.3.0
+VERSION ?= 1.3.1
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
@@ -26,7 +26,11 @@ all: build
 
 build: ${NAME}.1
        -mkdir build
-       sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION},;s,@DATADIR@,${DATADIR}," < ${NAME} > build/${NAME}
+       perl -MConfig -p -e'1..1 and s/.*/$$Config{startperl}/;' \
+               -e's,\@PREFIX\@,${PREFIX},;' \
+               -e's,\@LIBDIR\@,${LIBDIR},;' \
+               -e's,\@VERSION\@,${VERSION},;' \
+               -e's,\@DATADIR\@,${DATADIR},' ${NAME} > build/${NAME}
        cp -p $< build/$<
        ${MAKE} -C po build
 
@@ -79,6 +83,8 @@ dist:
        cp -p po/unmaint/*.po ${NAME}-${VERSION}/po/unmaint
        mkdir ${NAME}-${VERSION}/icons
        cp -p icons/*.xcf icons/*.png ${NAME}-${VERSION}/icons
+       mkdir ${NAME}-${VERSION}/t
+       cp -p t/*.t ${NAME}-${VERSION}/t
        tar cJf ${NAME}-${VERSION}.tar.xz ${NAME}-${VERSION} \
                && rm -rf ${NAME}-${VERSION}