xref: /freebsd/tools/build/make_check/check.mk (revision a10cee30c94cf5944826d2a495e9cdf339dfbcc8)
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