mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:01:09 +01:00
AUTO_OBJ: Don't create nested OBJDIRS with print-dir or make -n.
Sponsored by: Dell EMC
This commit is contained in:
parent
4783acf1f9
commit
b00a5bd558
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326634
@ -55,7 +55,8 @@ CANONICALOBJDIR= ${.OBJDIR}
|
||||
# Handle special case where SRCS is full-pathed and requires
|
||||
# nested objdirs. This duplicates some auto.obj.mk logic.
|
||||
.if (!empty(SRCS:M*/*) || !empty(DPSRCS:M*/*)) && \
|
||||
(${.TARGETS} == "" || ${.TARGETS:Nclean*:N*clean:Ndestroy*} != "")
|
||||
(${.TARGETS} == "" || ${.TARGETS:Nclean*:N*clean:Ndestroy*} != "") && \
|
||||
!make(print-dir) && empty(.MAKEFLAGS:M-[nN])
|
||||
_wantdirs= ${SRCS:M*/*:H} ${DPSRCS:M*/*:H}
|
||||
.if !empty(_wantdirs)
|
||||
_wantdirs:= ${_wantdirs:O:u}
|
||||
|
Loading…
Reference in New Issue
Block a user