aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-03-11 23:45:05 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-03-11 23:45:05 +0000
commit4d7ae5ef71a055fe45993e4d9786163b640da874 (patch)
treed45dcac2947ca35f74c36569f79ed25028cd601f /share/mk/bsd.sys.mk
parentfa3afecf97b376bb962e2295ef46ba42ecf83555 (diff)
downloadsrc-4d7ae5ef71a055fe45993e4d9786163b640da874.tar.gz
src-4d7ae5ef71a055fe45993e4d9786163b640da874.zip
DIRDEPS_BUILD: export DESTDIR for STAGING.
An example of where this is needed is in share/examples which for 'etc-examples' runs 'make -C SRCTOP/etc etc-examples' which installs to the default DESTDIR otherwise. Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=296694
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 2a26d3f1d2f5..cf53d861fe23 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -197,6 +197,7 @@ staging stage_libs stage_files stage_as stage_links stage_symlinks:
.else
# allow targets like beforeinstall to be leveraged
DESTDIR= ${STAGE_OBJTOP}
+.export DESTDIR
.if target(beforeinstall)
.if !empty(_LIBS) || (${MK_STAGING_PROG} != "no" && !defined(INTERNALPROG))