summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-03-16 02:51:25 +0000
committerchristos <christos@NetBSD.org>2013-03-16 02:51:25 +0000
commitf3ff435e0abc461bb81bcb4f2bc5ecde0f6e2ad7 (patch)
tree3e259deb7a43e85dfebafac67a5d495d06e0ad3b /tools
parent8946dd9fad581d7d9a5c3ecf0ada4b63b42f079c (diff)
Fix the real problem, Makefile.host was included before the HOST_MKDEP
setup so it prevented correct CPPFLAGS from being used.
Diffstat (limited to 'tools')
-rw-r--r--tools/binstall/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/binstall/Makefile b/tools/binstall/Makefile
index a07cb19fc9e..6752d7874ef 100644
--- a/tools/binstall/Makefile
+++ b/tools/binstall/Makefile
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2012/12/02 12:39:55 apb Exp $
+# $NetBSD: Makefile,v 1.10 2013/03/16 02:51:25 christos Exp $
+
+.include <bsd.own.mk>
HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-install
HOST_SRCDIR= usr.bin/xinstall
@@ -9,7 +11,6 @@ CPPFLAGS+= -DTARGET_STRIP=\"${STRIP}\"
# from ${TOOLDIR}.
NOCOMPATLIB=
-.include "${.CURDIR}/../Makefile.host"
# Use uninstalled copy of host-mkdep
HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR}
@@ -21,5 +22,8 @@ COMPATLIB_UNINSTALLED= yes
COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
.-include "${COMPATOBJ}/defs.mk"
+.include "${.CURDIR}/../Makefile.host"
+
# Use uninstalled copy of the install program
INSTALL= ./xinstall
+