logo

utils-std

Collection of commonly available Unix tools
commit: ef000e355ab11bc847a03ba99a4c5ecc735490d1
parent 313c1328fbd46aa618edd36d8860e5727b5f36d7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 16 Mar 2024 22:01:59 +0100

Makefile: Add check-man, checks if all EXEs have a manpage

Diffstat:

MMakefile5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -15,10 +15,13 @@ all: $(EXE) $(MAN1SO) TEST_LIBS = test-lib/mode test-lib/strtodur test-lib/symbolize_mode .PHONY: check -check: all $(TEST_LIBS) +check: all $(TEST_LIBS) check-man MALLOC_CHECK_=3 POSIX_ME_HARDER=1 POSIXLY_CORRECT=1 LDSTATIC=$(LDSTATIC) kyua test || (kyua report --verbose --results-filter=broken,failed; false) MALLOC_CHECK_=3 POSIX_ME_HARDER=1 POSIXLY_CORRECT=1 $(CRAM) test-cmd/*.t +check-man: + err=0; for i in $(EXE); do if test ! '(' -f $$i.1 -o -f $$i.1.in ')'; then echo "$$i.1: missing manpage"; err=1; fi; done; exit $$err + .PHONY: check-libs check-libs: $(TEST_LIBS) MALLOC_CHECK_=3 POSIX_ME_HARDER=1 POSIXLY_CORRECT=1 LDSTATIC=$(LDSTATIC) kyua test test-lib/ || (kyua report --verbose --results-filter=broken,failed; false)