From owner-svn-src-all@freebsd.org Thu Aug 27 02:59:49 2015 Return-Path: Delivered-To: svn-src-all@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 7FF5E9C368D; Thu, 27 Aug 2015 02:59:49 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 574AB13BD; Thu, 27 Aug 2015 02:59:49 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7R2xnXc099245; Thu, 27 Aug 2015 02:59:49 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7R2xnLJ099244; Thu, 27 Aug 2015 02:59:49 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201508270259.t7R2xnLJ099244@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 27 Aug 2015 02:59:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287187 - head/share/mk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2015 02:59:49 -0000 Author: imp Date: Thu Aug 27 02:59:48 2015 New Revision: 287187 URL: https://svnweb.freebsd.org/changeset/base/287187 Log: Make sys.mk more compatible with fmake by refraining from using :U modifiers. Differential Revision: https://reviews.freebsd.org/D3228 Modified: head/share/mk/sys.mk Modified: head/share/mk/sys.mk ============================================================================== --- head/share/mk/sys.mk Thu Aug 27 01:55:00 2015 (r287186) +++ head/share/mk/sys.mk Thu Aug 27 02:59:48 2015 (r287187) @@ -33,16 +33,23 @@ __DEFAULT_DEPENDENT_OPTIONS= \ # early include for customization # see local.sys.mk below -.-include +# Not included when building in fmake compatibility mode (still needed +# for older system support) +.if defined(.PARSEDIR) +.sinclude .if ${MK_META_MODE} == "yes" -.-include -.elif ${MK_META_FILES} == "yes" && ${.MAKEFLAGS:U:M-B} == "" +.sinclude +.elif ${MK_META_FILES} == "yes" && defined(.MAKEFLAGS) +.if ${.MAKEFLAGS:M-B} == "" .MAKE.MODE= meta verbose .endif +.endif .if ${MK_AUTO_OBJ} == "yes" # This needs to be done early - before .PATH is computed -.-include +.sinclude +.endif + .endif # If the special target .POSIX appears (without prerequisites or @@ -362,7 +369,7 @@ __MAKE_CONF?=/etc/make.conf .endif # late include for customization -.-include +.sinclude .if defined(__MAKE_SHELL) && !empty(__MAKE_SHELL) SHELL= ${__MAKE_SHELL} @@ -379,11 +386,12 @@ SHELL= ${__MAKE_SHELL} # when running target scripts, this is a problem for many makefiles here. # So define a shell that will do what FreeBSD expects. .ifndef WITHOUT_SHELL_ERRCTL +__MAKE_SHELL?=/bin/sh .SHELL: name=sh \ quiet="set -" echo="set -v" filter="set -" \ hasErrCtl=yes check="set -e" ignore="set +e" \ echoFlag=v errFlag=e \ - path=${__MAKE_SHELL:U/bin/sh} + path=${__MAKE_SHELL} .endif .include