Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2008 20:30:28 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132253 for review
Message-ID:  <200801012030.m01KUS90072297@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132253

Change 132253 by jb@jb_freebsd1 on 2008/01/01 20:29:35

	Get a list of failure directories so that 'make clean' works.
	
	Insist on using an object directory.

Affected files ...

.. //depot/projects/dtrace/src/tools/test/dtrace/Makefile#3 edit

Differences ...

==== //depot/projects/dtrace/src/tools/test/dtrace/Makefile#3 (text+ko) ====

@@ -1393,4 +1393,20 @@
 testtry	: ${DTEST} ${TESTTRY}
 	@${DTEST} ${TESTTRY}
 
+# --------------------------------------------------------------------------------
+# Test failures are written to failure.N directories in the object tree.
+# Get a list of directories in the object tree for 'make clean'.
+
+.if ${.OBJDIR} != ${.CURDIR} && !empty(${.OBJDIR})
+CLEANDIRS!=	cd ${.OBJDIR} && ls -d *
+.endif
+
+# --------------------------------------------------------------------------------
+# Insist on using an object directory. Things get messy otherwsie.
+
+.if ${.OBJDIR} == ${.CURDIR} && !make(obj) && !make(clean) && !make(cleandir)
+.error ERROR: You must run 'make obj' first!
+.endif
+
 .include <bsd.obj.mk>
+



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