Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2012 22:27:34 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236340 - head/tools/build/make_check
Message-ID:  <201205302227.q4UMRY9n084194@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: obrien
Date: Wed May 30 22:27:34 2012
New Revision: 236340
URL: http://svn.freebsd.org/changeset/base/236340

Log:
  make it easier to check newly-built make

Added:
  head/tools/build/make_check/check.mk   (contents, props changed)

Added: head/tools/build/make_check/check.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/build/make_check/check.mk	Wed May 30 22:27:34 2012	(r236340)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205302227.q4UMRY9n084194>