From 6bf775511658a8d1db300b97a155c3bbfe3f3bb1 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 23 Mar 2021 14:32:41 +0000 Subject: tests: create symlink on 'make test' and remove on 'make clean' FossilOrigin-Name: f4445dffca86814e9a87ebdad59af412f048e093a6854e71d761f94b69d97057 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 012bfe2..c63eb5a 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,13 @@ src/cpt-lib: src/cpt-lib.in -e "s|@DOCSTRING@|Call functions from the library|g" < src/cpt-lib.in > $@ chmod 755 $@ -test: all +test: all tests/etc/cpt-hook shellspec cd src; find . ../contrib -name 'cpt*' ! -name '*.*' -exec shellcheck -e 2119 -x -f gcc {} + +tests/etc/cpt-hook: + ln -s ../hook-file $@ + dist: docs/cpt.info mkdir "cpt-${VERSION}" cp -r ${DISTFILES} "cpt-${VERSION}" @@ -46,5 +49,6 @@ uninstall: clean: test "${DOCS}" != yes || ${MAKE} -C docs clean rm -rf src/cpt-lib "cpt-${VERSION}.tar.xz" coverage report + rm -f tests/etc/cpt-hook .PHONY: all dist clean install uninstall -- cgit v1.2.3