Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 993 Lines • ▼ Show 20 Lines | |||||
MTREEFLAGS+= -N ${.CURDIR}/etc | MTREEFLAGS+= -N ${.CURDIR}/etc | ||||
.endif | .endif | ||||
_INSTALL_DDIR= ${DESTDIR}/${DISTDIR} | _INSTALL_DDIR= ${DESTDIR}/${DISTDIR} | ||||
INSTALL_DDIR= ${_INSTALL_DDIR:S://:/:g:C:/$::} | INSTALL_DDIR= ${_INSTALL_DDIR:S://:/:g:C:/$::} | ||||
.if defined(NO_ROOT) | .if defined(NO_ROOT) | ||||
METALOG?= ${DESTDIR}/${DISTDIR}/METALOG | METALOG?= ${DESTDIR}/${DISTDIR}/METALOG | ||||
METALOG:= ${METALOG:C,//+,/,g} | METALOG:= ${METALOG:C,//+,/,g} | ||||
IMAKE+= -DNO_ROOT METALOG=${METALOG} | IMAKE+= -DNO_ROOT METALOG=${METALOG} | ||||
INSTALLFLAGS+= -U -M ${METALOG} -D ${INSTALL_DDIR} | METALOG_INSTALLFLAGS= -U -M ${METALOG} -D ${INSTALL_DDIR} | ||||
INSTALLFLAGS+= ${METALOG_INSTALLFLAGS} | |||||
CERTCLTFLAGS= ${METALOG_INSTALLFLAGS} | |||||
MTREEFLAGS+= -W | MTREEFLAGS+= -W | ||||
.endif | .endif | ||||
.if defined(BUILD_PKGS) | .if defined(BUILD_PKGS) | ||||
INSTALLFLAGS+= -h sha256 | INSTALLFLAGS+= -h sha256 | ||||
.endif | .endif | ||||
.if defined(DB_FROM_SRC) || defined(NO_ROOT) | .if defined(DB_FROM_SRC) || defined(NO_ROOT) | ||||
IMAKE_INSTALL= INSTALL="${INSTALL_CMD} ${INSTALLFLAGS}" | IMAKE_INSTALL= INSTALL="${INSTALL_CMD} ${INSTALLFLAGS}" | ||||
IMAKE_MTREE= MTREE_CMD="${MTREE_CMD} ${MTREEFLAGS}" | IMAKE_MTREE= MTREE_CMD="${MTREE_CMD} ${MTREEFLAGS}" | ||||
▲ Show 20 Lines • Show All 554 Lines • ▼ Show 20 Lines | .for dist in ${DEBUG_DISTRIBUTIONS} | ||||
@# the relevant mtree line. | @# the relevant mtree line. | ||||
cd ${DESTDIR}/${DISTDIR}; \ | cd ${DESTDIR}/${DISTDIR}; \ | ||||
find ./${dist}/usr/lib/debug | sort -u ${METALOG} - | \ | find ./${dist}/usr/lib/debug | sort -u ${METALOG} - | \ | ||||
awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}\//, "./"); print } }' > \ | awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}\//, "./"); print } }' > \ | ||||
${DESTDIR}/${DISTDIR}/${dist}.debug.meta | ${DESTDIR}/${DISTDIR}/${dist}.debug.meta | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
.elif make(installworld) && ${MK_CAROOT} != "no" | .elif make(installworld) && ${MK_CAROOT} != "no" | ||||
# We could make certctl a bootstrap tool, but it requires OpenSSL and | @if which openssl>/dev/null; then \ | ||||
# friends, which we likely don't want. We'll rehash on a best-effort | sh ${SRCTOP}/usr.sbin/certctl/certctl.sh ${CERTCLTFLAGS} rehash \ | ||||
# basis, otherwise we'll just mention that we're not doing it to raise | |||||
# awareness. | |||||
@if which certctl>/dev/null; then \ | |||||
certctl rehash; \ | |||||
else \ | else \ | ||||
echo "No certctl on the host, not rehashing target -- /etc/ssl may not be populated."; \ | echo "No openssl on the host, not rehashing certificates target -- /etc/ssl may not be populated."; \ | ||||
fi | fi | ||||
.endif | .endif | ||||
packageworld: .PHONY | packageworld: .PHONY | ||||
.for dist in base ${EXTRA_DISTRIBUTIONS} | .for dist in base ${EXTRA_DISTRIBUTIONS} | ||||
.if defined(NO_ROOT) | .if defined(NO_ROOT) | ||||
${_+_}cd ${DESTDIR}/${DISTDIR}/${dist}; \ | ${_+_}cd ${DESTDIR}/${DISTDIR}/${dist}; \ | ||||
tar cvf - --exclude usr/lib/debug \ | tar cvf - --exclude usr/lib/debug \ | ||||
▲ Show 20 Lines • Show All 2,007 Lines • Show Last 20 Lines |