From 8ce674db7ea92f6b3e551280b462c4f52ac74116 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 13 Feb 2022 17:52:07 +0000 Subject: added test suite for parseconf --- Makefile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 414324a..4836466 100755 --- a/Makefile +++ b/Makefile @@ -6,19 +6,35 @@ PREFIX=/usr .DEFAULT_GOAL := build -install: install-hbar install-headers -build: build-hbar +install: install-hbar install-colors install-parseconf +build: build-hbar install-headers: src/*.h install -m644 src/*.h ${DESTDIR}${PREFIX}/include +install-shtests: src/shtests + install -m755 src/shtests.sh ${DESTDIR}${PREFIX}/bin/shtests + install-chroot: src/xichroot install -m755 src/xichroot ${DESTDIR}${PREFIX}/bin/ -install-hbar: bin/hbar +install-parseconf: src/parseconf + install -m755 src/parseconf ${DESTDIR}${PREFIX}/bin/ + +check-parseconf: + shtests ./test/parseconf.sh + +install-hbar: build-hbar install -m755 bin/hbar ${DESTDIR}${PREFIX}/bin -build-hbar: src/hbar.c +install-colors: src/colors.list + sh src/generate_colors.sh ${DESTDIR}${PREFIX} src/colors.list + + +clean: + rm -r bin + +build-hbar: src/hbar.c install-colors mkdir -pv bin ${CC} src/hbar.c -o bin/hbar ${FLAGS} -- cgit v1.2.1