Make DATADIR available to code
[clawsker.git] / Makefile
index 83c54bb74786a169e02c01f55254913fc0544484..93d96e8f7f88cdecbce0a11c549e171c5813bc0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #
 # Clawsker Makefile
 #
 # Clawsker Makefile
-# Copyright 2007-2014 Ricardo Mones <ricardo@mones.org>
+# Copyright 2007-2015 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
 #
 # 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
@@ -11,7 +11,7 @@
 #
 
 NAME = clawsker
 #
 
 NAME = clawsker
-VERSION ?= 0.7.11
+VERSION ?= 0.7.13
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
 PREFIX ?= /usr/local
 BINDIR = ${PREFIX}/bin
 DATADIR = ${PREFIX}/share
@@ -23,7 +23,7 @@ all: build
 
 build:
        -mkdir build
 
 build:
        -mkdir build
-       sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION}," < ${NAME} > build/${NAME}
+       sed -e "s,@PREFIX@,${PREFIX},;s,@LIBDIR@,${LIBDIR},;s,@VERSION@,${VERSION},;s,@DATADIR@,${DATADIR}," < ${NAME} > build/${NAME}
        pod2man --release ${VERSION} -c '' ${NAME}.pod > build/${NAME}.1
        ${MAKE} -C po build
        
        pod2man --release ${VERSION} -c '' ${NAME}.pod > build/${NAME}.1
        ${MAKE} -C po build
        
@@ -49,7 +49,7 @@ dist:
        cp -p AUTHORS ChangeLog.old clawsker clawsker.pod \
                COPYING Makefile NEWS README ${NAME}-${VERSION}
        cp -rp po ${NAME}-${VERSION}
        cp -p AUTHORS ChangeLog.old clawsker clawsker.pod \
                COPYING Makefile NEWS README ${NAME}-${VERSION}
        cp -rp po ${NAME}-${VERSION}
-       tar czf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION} \
+       tar cJf ${NAME}-${VERSION}.tar.xz ${NAME}-${VERSION} \
                && rm -rf ${NAME}-${VERSION}
 
 clean-build:
                && rm -rf ${NAME}-${VERSION}
 
 clean-build: