aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-08-01 08:11:33 +0000
committermerakor <cem@ckyln.com>2021-08-01 08:11:33 +0000
commitde30fe4ffd6ddc57885d2ca00b38c1ec3617b2fc (patch)
tree2c0b5184ebf3169f641a03a79cd8a4258ef39dbd /Makefile
parentd4221197352aa424f64b398979bfb1df1e7e8fa7 (diff)
downloadcpt-de30fe4ffd6ddc57885d2ca00b38c1ec3617b2fc.tar.gz
Makefile: update
FossilOrigin-Name: 9387e6fcc72be9b98df3710bc6eaa6262883592cb44ef0e067299e336df7eb59
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 126c266..b2c7a5f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,16 +5,17 @@ INSTALL_SH = ./tools/install.sh
CONTRIB = `find contrib -name 'cpt*' ! -name '*.*'`
SRC = `find src -name 'cpt*' ! -name '*.*'`
BIN = ${SRC} ${CONTRIB}
-LIB = src/cpt-lib
-LIB_IN = ${LIB:=.in}
all: src/cpt-lib
@if ! [ -e config.mk ]; then echo "Please run './configure'"; exit 1; fi
@test "${DOCS}" != yes || ${MAKE} -C docs all
src/cpt-lib: src/cpt-lib.in
- sed -e "s|@VERSION@|${VERSION}|g" \
- -e "s|@DOCSTRING@|Call functions from the library|g" < src/cpt-lib.in > $@
+ sed -n '/^Copyright/{s,^, ",;s,$$," \\,;p}' LICENSE | \
+ sed -e '/@LICENSE@/r /dev/stdin' \
+ -e '/@LICENSE@/d' \
+ -e "s|@VERSION@|${VERSION}|g" \
+ -e "s|@DOCSTRING@|Call functions from the library|g" src/cpt-lib.in > $@
chmod 755 $@
shellspec: all tests/etc/cpt-hook