summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-04-14 21:06:10 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-04-14 21:06:10 +0000
commitb40d5fe0a7b8550ca5f6cfb5e750e946b12b1dcb (patch)
tree8aaa286b7ad01438e74918c3c600dd2e1609dfc1 /bin
parentc027e2497fa58d9f68775e67f319f8d69b3d849d (diff)
downloadFreeBSD-src-b40d5fe0a7b8550ca5f6cfb5e750e946b12b1dcb.zip
FreeBSD-src-b40d5fe0a7b8550ca5f6cfb5e750e946b12b1dcb.tar.gz
META_MODE: Don't rebuild build-tools targets during normal build.
This avoids 'build command changed' due to CFLAGS/CC changes during the normal build. Without this the build-tools targets end up rebuilding for the *target* rather than keeping the native versions built in build-tools. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/Makefile2
-rw-r--r--bin/sh/Makefile6
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/csh/Makefile b/bin/csh/Makefile
index 2c9ae22..f55f241 100644
--- a/bin/csh/Makefile
+++ b/bin/csh/Makefile
@@ -109,7 +109,7 @@ csh.1: tcsh.man
build-tools: gethost
-gethost: gethost.c sh.err.h tc.const.h sh.h
+gethost: gethost.c sh.err.h tc.const.h sh.h ${BUILD_TOOLS_META}
@rm -f ${.TARGET}
${CC} -o gethost ${LDFLAGS} ${CFLAGS:C/-DHAVE_ICONV//} \
${TCSHDIR}/gethost.c
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index 3f28a12..e6d1d83 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -44,10 +44,10 @@ builtins.c builtins.h: mkbuiltins builtins.def
# XXX this is just to stop the default .c rule being used, so that the
# intermediate object has a fixed name.
# XXX we have a default .c rule, but no default .o rule.
-.o:
+mknodes.o mksyntax.o: ${BUILD_TOOLS_META}
${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
-mknodes: mknodes.o
-mksyntax: mksyntax.o
+mknodes: mknodes.o ${BUILD_TOOLS_META}
+mksyntax: mksyntax.o ${BUILD_TOOLS_META}
.ORDER: nodes.c nodes.h
nodes.c nodes.h: mknodes nodetypes nodes.c.pat
OpenPOWER on IntegriCloud