xref: /freebsd/tools/build/make_check/check.mk (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1# $FreeBSD$
2
3all:
4	${MK} ${MK_ARG}
5
6.if exists(${.OBJDIR}/../../../usr.bin/make/make)
7MK=	${.OBJDIR}/../../../usr.bin/make/make
8new:
9	${MK} ${MK_ARG} 2>&1 | tee out-new
10	@echo "-=-=-=-=-=-"
11	make ${MK_ARG} 2>&1 | tee out-old
12	@echo "-=-=-=-=-=-"
13	diff -s out-old out-new
14.else
15MK=	make
16.endif
17MK_ARG=	-C ${.CURDIR}
18
19.include <bsd.obj.mk>
20