Fix -DNO_CLEAN build after r340157

Approved By:	jhb (mentor)
This commit is contained in:
Alex Richardson 2018-11-05 21:30:00 +00:00
parent 35b4d0f125
commit b25c717954
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340162

View File

@ -114,9 +114,17 @@ installdirs:
# bootstrap-tools phase. We could also overrride BINDIR when building bootstrap
# tools but adding the symlinks is easier and means all tools are also
# in the directory that they are installed to normally.
ln -sf bin ${DESTDIR}/sbin
ln -sf ../bin ${DESTDIR}/usr/bin
ln -sf ../bin ${DESTDIR}/usr/sbin
.for _dir in sbin usr/sbin usr/bin
# delete existing directories from before r340157
@if [ ! -L ${DESTDIR}/${_dir} ]; then \
echo "removing old non-symlink ${DESTDIR}/${_dir}"; \
rm -rf "${DESTDIR}/${_dir}"; \
fi
.endfor
ln -sfn bin ${DESTDIR}/sbin
ln -sfn ../bin ${DESTDIR}/usr/bin
ln -sfn ../bin ${DESTDIR}/usr/sbin
.for _group in ${INCSGROUPS:NINCS}
mkdir -p "${DESTDIR}/${${_group}DIR}"
.endfor