aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.subdir.mk
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-04-17 13:49:29 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-04-17 13:49:29 +0000
commit2bdaf7e81c40bb62614080808c42c6a9208e0246 (patch)
tree8ecd5d0c5dac332088910644780304ff8543ee61 /share/mk/bsd.subdir.mk
parentd57e28adb2783f7143e36852865240d6b6485383 (diff)
downloadsrc-2bdaf7e81c40bb62614080808c42c6a9208e0246.tar.gz
src-2bdaf7e81c40bb62614080808c42c6a9208e0246.zip
Don't include bsd.own.mk from sys.mk, this makes it impossible
to use ``.if defined()'' inside bsd.own.mk to test for defines in individual makefiles. For example, setting DEBUG_FLAGS in Makefile didn't take the desired effect on the STRIP assignment. Added bsd.init.mk (like in NetBSD) that handles the inclusion of ../Makefile.inc and bsd.own.mk from all bsd.*.mk files that "build something". Back out bsd.own.mk,v 1.15: moved OBJFORMAT initialization back to sys.mk (several source tree makefiles want to check it early) and removed MACHINE_ARCH initialization (it's hard to see from looking at the commitlogs what the problem was at the time, but now it serves no purpose). Prohibit the direct inclusion of bsd.man.mk and bsd.libnames.mk. Protect bsd.obj.mk from repetitive inclusion. Prohibiting the direct inclusion of bsd.obj.mk might be a good idea too.
Notes
Notes: svn path=/head/; revision=94940
Diffstat (limited to 'share/mk/bsd.subdir.mk')
-rw-r--r--share/mk/bsd.subdir.mk9
1 files changed, 1 insertions, 8 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index f169f0a806b6..9f2b89000838 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -29,14 +29,7 @@
# obj, objlink, realinstall, regress, tags
#
-.if !target(__initialized__)
-__initialized__:
-.if exists(${.CURDIR}/../Makefile.inc)
-.include "${.CURDIR}/../Makefile.inc"
-.endif
-.endif
-
-.MAIN: all
+.include <bsd.init.mk>
_SUBDIRUSE: .USE
@for entry in ${SUBDIR}; do \