#
# Clawsker Makefile
-# Copyright 2007-2018 Ricardo Mones <ricardo@mones.org>
+# Copyright 2007-2023 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
#
NAME = clawsker
-VERSION ?= 1.3.0
+VERSION ?= 1.3.8
PREFIX ?= /usr/local
BINDIR = ${PREFIX}/bin
DATADIR = ${PREFIX}/share
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