summaryrefslogtreecommitdiff
path: root/examples/hello_TARGETS/test.mk
blob: 694966054bde024d9e686d3387f72c56d1cc89a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# I added "codingstylechk" to "test" just for mk-configure regr. test

test:
.PHONY : test_output
test_output :
	@:; \
	${OBJDIR_hello1}/hello1; \
	${OBJDIR_hello2}/hello2; \
	MKCATPAGES=yes; export MKCATPAGES; \
	\
	echo =========== all ============; \
	find ${.OBJDIR} -type f -o -type l | \
	mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
	\
	echo ========= codingstylechk ==========; \
	${MAKE} ${MAKEFLAGS} cleandir 2>/dev/null 1>&2; \
	{ ${MAKE} ${MAKEFLAGS} codingstylechk 2>&1; echo cschk ex=$$?; } | \
	env NOSORT=1 mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
	\
	echo ============= files ===============; \
	find ${.OBJDIR} -type f -o -type l | \
	mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
	\
	echo =========== manpages ============; \
	env MKCATPAGES=no ${MAKE} ${MAKEFLAGS} cleandir 2>/dev/null 1>&2; \
	${MAKE} ${MAKEFLAGS} manpages 2>/dev/null 1>&2; \
	find ${.OBJDIR} -type f | \
	mkc_test_helper "${PREFIX}" "${.OBJDIR}"
	\
	${MAKE} ${MAKEFLAGS} cleandir 2>/dev/null 1>&2

.include <mkc.minitest.mk>