PR 49870: pass the xsrc path to postinstall
This commit is contained in:
parent
432881ad82
commit
2d0cfa998a
14
Makefile
14
Makefile
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.312 2015/01/07 20:42:01 joerg Exp $
|
||||
# $NetBSD: Makefile,v 1.313 2015/05/03 15:13:13 martin Exp $
|
||||
|
||||
#
|
||||
# This is the top-level makefile for building NetBSD. For an outline of
|
||||
|
@ -181,24 +181,28 @@ _POSTINSTALL_ENV= \
|
|||
SED=${TOOL_SED:Q} \
|
||||
STAT=${TOOL_STAT:Q}
|
||||
|
||||
.if ${MKX11} != "no"
|
||||
_POSTINSTALL_X11=-x ${X11SRCDIR:Q}
|
||||
.endif
|
||||
|
||||
postinstall-check: .PHONY
|
||||
@echo " === Post installation checks ==="
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ check; if [ $$? -gt 1 ]; then exit 1; fi
|
||||
@echo " ================================"
|
||||
|
||||
postinstall-fix: .NOTMAIN .PHONY
|
||||
@echo " === Post installation fixes ==="
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix
|
||||
@echo " ==============================="
|
||||
|
||||
postinstall-fix-obsolete: .NOTMAIN .PHONY
|
||||
@echo " === Removing obsolete files ==="
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete
|
||||
@echo " ==============================="
|
||||
|
||||
postinstall-fix-obsolete_stand: .NOTMAIN .PHONY
|
||||
@echo " === Removing obsolete files ==="
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} -d ${DESTDIR}/ fix obsolete_stand
|
||||
${_POSTINSTALL_ENV} ${HOST_SH} ${_POSTINSTALL} -s ${.CURDIR} ${_POSTINSTALL_X11} -d ${DESTDIR}/ fix obsolete_stand
|
||||
@echo " ==============================="
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue