mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
make it easier to check newly-built make
This commit is contained in:
parent
a35a9551c4
commit
6abbb4f561
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236340
19
tools/build/make_check/check.mk
Normal file
19
tools/build/make_check/check.mk
Normal file
@ -0,0 +1,19 @@
|
||||
# $FreeBSD$
|
||||
|
||||
all:
|
||||
${MK} ${MK_ARG}
|
||||
|
||||
.if exists(${.OBJDIR}/../../../usr.bin/make/make)
|
||||
MK= ${.OBJDIR}/../../../usr.bin/make/make
|
||||
new:
|
||||
${MK} ${MK_ARG} 2>&1 | tee out-new
|
||||
@echo "-=-=-=-=-=-"
|
||||
make ${MK_ARG} 2>&1 | tee out-old
|
||||
@echo "-=-=-=-=-=-"
|
||||
diff -s out-old out-new
|
||||
.else
|
||||
MK= make
|
||||
.endif
|
||||
MK_ARG= -C ${.CURDIR}
|
||||
|
||||
.include <bsd.obj.mk>
|
Loading…
Reference in New Issue
Block a user