diff options
author | merakor <cem@ckyln.com> | 2021-08-01 08:11:33 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-08-01 08:11:33 +0000 |
commit | de30fe4ffd6ddc57885d2ca00b38c1ec3617b2fc (patch) | |
tree | 2c0b5184ebf3169f641a03a79cd8a4258ef39dbd /Makefile | |
parent | d4221197352aa424f64b398979bfb1df1e7e8fa7 (diff) | |
download | cpt-de30fe4ffd6ddc57885d2ca00b38c1ec3617b2fc.tar.gz |
Makefile: update
FossilOrigin-Name: 9387e6fcc72be9b98df3710bc6eaa6262883592cb44ef0e067299e336df7eb59
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |