From de30fe4ffd6ddc57885d2ca00b38c1ec3617b2fc Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 1 Aug 2021 08:11:33 +0000 Subject: Makefile: update FossilOrigin-Name: 9387e6fcc72be9b98df3710bc6eaa6262883592cb44ef0e067299e336df7eb59 --- Makefile | 9 +++++---- 1 file 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 -- cgit v1.2.3