Fix the reinstall target to make it follow a proper sequence

first deinstall then reinstall.

For now keep the DEPENDS_TARGET, which should probably die, but
let study that in a second step

PR:		224244
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
This commit is contained in:
Baptiste Daroussin 2019-09-04 12:01:19 +00:00
parent 2d82352c0f
commit b4b7cb1c9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511086

View file

@ -3670,7 +3670,7 @@ checkpatch:
.if !target(reinstall) .if !target(reinstall)
reinstall: reinstall:
@${RM} ${INSTALL_COOKIE} ${PACKAGE_COOKIE} @${RM} ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} -DFORCE_PKG_REGISTER install @cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} deinstall install
.endif .endif
.if !target(restage) .if !target(restage)