From owner-svn-src-stable-10@freebsd.org Thu Oct 8 17:45:05 2015 Return-Path: Delivered-To: svn-src-stable-10@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A00E9D04BB; Thu, 8 Oct 2015 17:45:05 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 11F1B8DA; Thu, 8 Oct 2015 17:45:04 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t98Hj4VG040430; Thu, 8 Oct 2015 17:45:04 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t98Hj40g040429; Thu, 8 Oct 2015 17:45:04 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201510081745.t98Hj40g040429@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Thu, 8 Oct 2015 17:45:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r289040 - stable/10/share/mk X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 17:45:05 -0000 Author: bdrewery Date: Thu Oct 8 17:45:03 2015 New Revision: 289040 URL: https://svnweb.freebsd.org/changeset/base/289040 Log: MFC r288179: Fix running make in src directories without a Makefile giving confusing errors. Modified: stable/10/share/mk/Makefile Directory Properties: stable/10/ (props changed) Modified: stable/10/share/mk/Makefile ============================================================================== --- stable/10/share/mk/Makefile Thu Oct 8 17:42:08 2015 (r289039) +++ stable/10/share/mk/Makefile Thu Oct 8 17:45:03 2015 (r289040) @@ -1,6 +1,12 @@ # $FreeBSD$ # @(#)Makefile 8.1 (Berkeley) 6/8/93 +# Only parse this if executing make in this directory, not in other places +# in src that lack a Makefile, such as sys/dev/*. Otherwise the MAKESYSPATH +# will read this Makefile since it auto includes it into -I. +# Note that this guard only works for bmake. +.if !defined(.PARSEDIR) || ${.CURDIR} == ${.PARSEDIR} + .include FILES= \ @@ -51,3 +57,4 @@ FILES+= tap.test.mk .endif .include +.endif # CURDIR == PARSEDIR