mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
Add an assertion to avoid the 'rm -rf /etc' case from cleanobj fixed in r325404.
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
5abdb50e57
commit
968be8a7a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325405
|
@ -84,6 +84,10 @@ OBJTOP?= ${MAKEOBJDIR}
|
|||
CANONICALOBJDIR:=/usr/obj${.CURDIR}
|
||||
.endif
|
||||
|
||||
.if ${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR}
|
||||
.error .OBJDIR incorrectly set to /${RELDIR}
|
||||
.endif
|
||||
|
||||
OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP}
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue