If DESTDIR was specified as a makeoption in the kernelconfig file

we want to pass it on to the modules build so we don't install
the kernel under DESTDIR and the modules in /boot.
This commit is contained in:
Poul-Henning Kamp 2003-05-31 21:16:12 +00:00
parent f8f6970098
commit 89e50d0e9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115572

View File

@ -9,6 +9,11 @@
# $FreeBSD$
#
# In case the config had a makeoptions DESTDIR...
.if defined(DESTDIR)
MKMODULESENV+= DESTDIR="${DESTDIR}"
.endif
.MAIN: all
.for target in all clean cleandepend cleandir clobber depend install \