summaryrefslogtreecommitdiff
path: root/include/Makefile
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 21:04:42 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 21:04:42 +0000
commit94086cea279d930eb2fbe7d680585abde7e9c095 (patch)
tree843135ddb784aa6430401ed2b918689a6b439550 /include/Makefile
parenta561b1060c97af7ef4c95bcdf1ac2182b51c11b3 (diff)
downloadsrc-test2-94086cea279d930eb2fbe7d680585abde7e9c095.tar.gz
src-test2-94086cea279d930eb2fbe7d680585abde7e9c095.zip
Rework META_TARGETS so that it automatically adds META_DEPS to the targets.
This will only be done if the target is defined, so if the target is defined after bsd.sys.mk is included then it needs to manually add ${META_DEPS} still. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=297994
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/Makefile b/include/Makefile
index bb7909884ec9..c949ede9574b 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -131,13 +131,8 @@ _MARCHS+= x86
META_TARGETS+= compat copies symlinks
stage_includes: ${SHARED}
-.include <bsd.prog.mk>
-
-installincludes: ${SHARED}
-${SHARED}: compat
-
# Take care of stale directory-level symlinks.
-compat: ${META_DEPS}
+compat:
.for i in ${LDIRS} ${LSUBDIRS} machine ${_MARCHS} crypto
if [ -L ${DESTDIR}${INCLUDEDIR}/$i ]; then \
rm -f ${DESTDIR}${INCLUDEDIR}/$i; \
@@ -147,7 +142,7 @@ compat: ${META_DEPS}
-f ${.CURDIR}/../etc/mtree/BSD.include.dist \
-p ${DESTDIR}${INCLUDEDIR} > /dev/null
-copies: ${META_DEPS}
+copies:
.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto machine machine/pc \
${_MARCHS}
if [ -d ${DESTDIR}${INCLUDEDIR}/$i ]; then \
@@ -233,7 +228,7 @@ copies: ${META_DEPS}
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 teken.h \
${DESTDIR}${INCLUDEDIR}/teken
-symlinks: ${META_DEPS}
+symlinks:
@${ECHO} "Setting up symlinks to kernel source tree..."
.for i in ${LDIRS}
cd ${.CURDIR}/../sys/$i; \
@@ -347,6 +342,11 @@ symlinks: ${META_DEPS}
${DESTDIR}${INCLUDEDIR}/rpc; \
done
+.include <bsd.prog.mk>
+
+installincludes: ${SHARED}
+${SHARED}: compat
+
.if ${MACHINE} == "host" && !defined(_SKIP_BUILD)
# we're here because we are building a sysroot...
# we need MACHINE et al set correctly