From 1f64e717bd8740ee1061e9d85b2914abaaecf8e8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 20 Apr 2022 17:15:01 +0100 Subject: fixed tests --- Makefile | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56e4a9d..20f829b 100755 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ DIST=dist install: install-hbar install-colors install-parseconf install-shtests install-glyphs check: check-parseconf -build: make-dist build-hbar +build: make-dist hbar shtests parseconf colors make-dist: mkdir -p ${DIST} @@ -18,13 +18,13 @@ make-dist: install-headers: src/*.h install -Dm644 src/*.h ${DESTDIR}${PREFIX}/include -install-shtests: src/shtests.sh - install -Dm755 src/shtests.sh ${DESTDIR}${PREFIX}/bin/shtests +install-shtests: shtests + install -Dm755 ${DIST}/shtests ${DESTDIR}${PREFIX}/bin/shtests -install-parseconf: src/parseconf.sh - install -Dm755 src/parseconf.sh ${DESTDIR}${PREFIX}/bin/parseconf +install-parseconf: parseconf + install -Dm755 ${DIST}/parseconf ${DESTDIR}${PREFIX}/bin/parseconf -install-hbar: build-hbar +install-hbar: hbar install -Dm755 ${DIST}/hbar ${DESTDIR}${PREFIX}/bin install-colors: src/colors.list @@ -32,15 +32,24 @@ install-colors: src/colors.list install -Dm755 ${DIST}/colors.h ${DESTDIR}${PREFIX}/include/colors.h install-glyphs: src/glyphs.sh - install -m755 src/glyphs.sh ${DESTDIR}${PREFIX}/lib + install -Dm755 src/glyphs.sh ${DESTDIR}${PREFIX}/lib -check-parseconf: install-shtests test/parseconf.sh - ${DESTDIR}${PREFIX}/bin/shtests ./test/parseconf.sh -build-hbar: generate-colors src/hbar.c + +check-parseconf: shtests parseconf test/parseconf.sh + ${DIST}/shtests ./test/parseconf.sh + + +hbar: colors src/hbar.c ${CC} -I${DIST} src/hbar.c -o ${DIST}/hbar ${FLAGS} -generate-colors: src/colors.list +shtests: src/shtests.sh + install -Dm755 src/shtests.sh ${DIST}/shtests + +parseconf: src/parseconf.sh + install -Dm755 src/parseconf.sh ${DIST}/parseconf + +colors: src/colors.list sh src/generate_colors.sh ${DIST}/ src/colors.list clean: -- cgit v1.2.1