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