summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2012-11-08 21:27:46 +0000
committersjg <sjg@FreeBSD.org>2012-11-08 21:27:46 +0000
commit2fb04ea6c179c011af384fc1b76ee586346e2d79 (patch)
tree6afacf64b5ffc41d0dab60441440051fd97c4cab /usr.bin/truss
parent9f7bd28e773edf781d7238fca67fbe5ea4648afb (diff)
downloadFreeBSD-src-2fb04ea6c179c011af384fc1b76ee586346e2d79.zip
FreeBSD-src-2fb04ea6c179c011af384fc1b76ee586346e2d79.tar.gz
If we are staging, we need to look in the right place, for
the headers we want to examine.
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile
index a5eff14..5fde723 100644
--- a/usr.bin/truss/Makefile
+++ b/usr.bin/truss/Makefile
@@ -24,7 +24,7 @@ syscalls.h: syscalls.master
ioctl.c: ${.CURDIR}/../kdump/mkioctls
env MACHINE=${MACHINE} CPP="${CPP}" \
- /bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}/usr/include > ${.TARGET}
+ /bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
.if ${MACHINE_CPUARCH} == "i386"
SRCS+= i386-linux.c linux_syscalls.h
@@ -73,3 +73,10 @@ freebsd32_syscalls.h: fbsd32-syscalls.master
.endif
.include <bsd.prog.mk>
+
+
+.if ${MK_STAGING} != ""
+# we are interested in the files put in ${STAGE_OBJTOP}/include
+DESTDIR= ${STAGE_OBJTOP}
+INCLUDEDIR= /include
+.endif
OpenPOWER on IntegriCloud