summaryrefslogtreecommitdiff
path: root/tests/pkg_config_1/test.mk
blob: 6fe834ca3de38e3ab9bfed548534dc9b8d8e3021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
test:
	@echo 'Testing ${.CURDIR}... ' 1>&2; \
	set -e; cd ${.CURDIR}; \
	tmp_out=${.OBJDIR}/${.CURDIR:T}.test.out; \
	rm -f $$tmp_out; \
	${MAKE} ${MAKEFLAGS} all 2>&1 | grep ERROR: > $$tmp_out || true; \
	if test -s $$tmp_out; \
	then echo '      succeeded' 1>&2; \
	else echo '      FAILED' 1>&2; ex=1; \
	fi; \
	${MAKE} ${MAKEFLAGS} cleandir 2>&1 | grep ERROR: > $$tmp_out || true; \
	exit $$ex

CLEANFILES   +=		${.OBJDIR}/${.CURDIR:T}.test.out