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