summaryrefslogtreecommitdiff
path: root/tests/predopost_targets/test.mk
blob: 5db4de16c4ff5e6194942f701e4b3059af23f057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY : test_output
test_output :
	@set -e; \
	\
	{ \
	echo '=========== {pre,do,post}_recursive ============'; \
	for t in clean cleandir install all uninstall installdirs depend; do \
		${MAKE} ${MAKEFLAGS} -j1 $$t | \
		grep -v checking; \
	done ; \
	env MKINSTALLDIRS=no ${MAKE} ${MAKEFLAGS} -j1 install; \
	} | env NOSORT=1 mkc_test_helper "${PREFIX}" "${.OBJDIR}"; \
	\
	echo '=========== {pre,do,post}_nonrec ============'; \
	for t in bin_tar bin_targz bin_tarbz2 bin_zip bin_deb; do \
		env INCFILE=Makefile.inc ${MAKE} ${MAKEFLAGS} -j1 $$t | \
		grep -v checking; \
	done ; \
	\
	true =========== cleandir ============; \
	env REAL_TARGETS=1 ${MAKE} ${MAKEFLAGS} distclean > /dev/null

.include <mkc.minitest.mk>