summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2015-06-10 18:14:38 +0000
committersjg <sjg@FreeBSD.org>2015-06-10 18:14:38 +0000
commit30006bb9784dc5017f7238229b77c757c9ebc7b1 (patch)
tree72b0b175e5444dbbddf9d2bc76974cb4b3855623
parent55b0578965d60390268cb2af0f93c86700f7b0f8 (diff)
downloadFreeBSD-src-30006bb9784dc5017f7238229b77c757c9ebc7b1.zip
FreeBSD-src-30006bb9784dc5017f7238229b77c757c9ebc7b1.tar.gz
Building on fmake is no longer possible so removed tests for bmake.
-rw-r--r--share/mk/bsd.dep.mk2
-rw-r--r--share/mk/bsd.init.mk2
-rw-r--r--share/mk/bsd.own.mk4
-rw-r--r--share/mk/bsd.progs.mk4
-rw-r--r--share/mk/bsd.subdir.mk2
-rw-r--r--share/mk/local.init.mk2
-rw-r--r--share/mk/sys.mk19
7 files changed, 2 insertions, 33 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index eb75ff3..965f703 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -147,7 +147,6 @@ beforedepend: ${DHDRS}
beforebuild: ${DHDRS}
.endif
-.if defined(.PARSEDIR)
.if ${MK_META_MODE} == "yes"
.include <meta.autodep.mk>
# this depend: bypasses that below
@@ -156,7 +155,6 @@ depend: beforedepend ${DPSRCS} ${SRCS} afterdepend
beforedepend:
afterdepend: beforedepend
.endif
-.endif
.if !target(depend)
.if defined(SRCS)
diff --git a/share/mk/bsd.init.mk b/share/mk/bsd.init.mk
index 14a17dd..1e6979d 100644
--- a/share/mk/bsd.init.mk
+++ b/share/mk/bsd.init.mk
@@ -16,11 +16,9 @@ __<bsd.init.mk>__:
.include <bsd.own.mk>
.MAIN: all
-.if defined(.PARSEDIR)
.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
# this tells lib.mk and prog.mk to not actually build anything
_SKIP_BUILD = not building at level 0
.endif
-.endif
.endif # !target(__<bsd.init.mk>__)
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index b41583b..d8ce3b4 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -128,10 +128,8 @@ __<bsd.own.mk>__:
.if ${MK_CTF} != "no"
CTFCONVERT_CMD= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
-.elif defined(.PARSEDIR) || (defined(MAKE_VERSION) && ${MAKE_VERSION} >= 5201111300)
-CTFCONVERT_CMD=
.else
-CTFCONVERT_CMD= @:
+CTFCONVERT_CMD=
.endif
.if ${MK_INSTALL_AS_USER} != "no"
diff --git a/share/mk/bsd.progs.mk b/share/mk/bsd.progs.mk
index f943678..1237439 100644
--- a/share/mk/bsd.progs.mk
+++ b/share/mk/bsd.progs.mk
@@ -22,14 +22,10 @@ PROGS += ${PROGS_CXX}
# In meta mode, we can capture dependenices for _one_ of the progs.
# if makefile doesn't nominate one, we use the first.
-.if defined(.PARSEDIR)
.ifndef UPDATE_DEPENDFILE_PROG
UPDATE_DEPENDFILE_PROG = ${PROGS:[1]}
.export UPDATE_DEPENDFILE_PROG
.endif
-.else
-UPDATE_DEPENDFILE_PROG?= no
-.endif
.ifndef PROG
# They may have asked us to build just one
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index c57f83c..e1b1276 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -34,7 +34,7 @@ __<bsd.subdir.mk>__:
.include <bsd.init.mk>
-.if defined(.PARSEDIR) && !defined(NEED_SUBDIR)
+.if !defined(NEED_SUBDIR)
.if ${.MAKE.LEVEL} == 0 && ${MK_META_MODE} == "yes" && !empty(SUBDIR) && !(make(clean*) || make(destroy*))
.include <meta.subdir.mk>
# ignore this
diff --git a/share/mk/local.init.mk b/share/mk/local.init.mk
index 2d0ad4f..c17c957 100644
--- a/share/mk/local.init.mk
+++ b/share/mk/local.init.mk
@@ -1,7 +1,6 @@
.include "src.opts.mk"
-.if defined(.PARSEDIR)
.if ${.MAKE.MODE:Unormal:Mmeta*} != ""
.if !empty(SUBDIR) && !defined(LIB) && !defined(PROG) && ${.MAKE.MAKEFILES:M*bsd.prog.mk} == ""
.if ${.MAKE.MODE:Mleaf*} != ""
@@ -10,7 +9,6 @@
.endif
.endif
.endif
-.endif
.if ${MK_SYSROOT} == "yes" && !empty(SYSROOT)
CFLAGS_LAST+= --sysroot=${SYSROOT}
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index 7d7d42b..9532edd 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -97,17 +97,9 @@ ECHODIR ?= true
.endif
.endif
-.if defined(.PARSEDIR)
# _+_ appears to be a workaround for the special src .MAKE not working.
# setting it to + interferes with -N
_+_ ?=
-.elif !empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n"
-# the check above matches only a single -n, so -n -n will result
-# in _+_ = +
-_+_ ?=
-.else
-_+_ ?= +
-.endif
.if defined(%POSIX)
FC ?= fort77
@@ -369,16 +361,6 @@ SHELL= ${__MAKE_SHELL}
.SHELL: path=${__MAKE_SHELL}
.endif
-.if !defined(.PARSEDIR)
-# We are not bmake, which is more aggressive about searching .PATH
-# It is sometime necessary to curb its enthusiasm with .NOPATH
-# The following allows us to quietly ignore .NOPATH when not using bmake.
-.NOTMAIN: .NOPATH
-.NOPATH:
-
-# Toggle on warnings
-.WARN: dirsyntax
-.else # is bmake
# Tell bmake to expand -V VAR by default
.MAKE.EXPAND_VARIABLES= yes
@@ -395,7 +377,6 @@ SHELL= ${__MAKE_SHELL}
echoFlag=v errFlag=e \
path=${__MAKE_SHELL:U/bin/sh}
.endif
-.endif # bmake
.include <bsd.cpu.mk>
OpenPOWER on IntegriCloud