Skip to content

Commit

Permalink
make it easier to check newly-built make
Browse files Browse the repository at this point in the history
  • Loading branch information
obrien authored and obrien committed May 30, 2012
1 parent 2c3aca1 commit c7adc0c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/build/make_check/check.mk
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit c7adc0c

Please sign in to comment.