mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Do not choke on an empty SUBDIR.
Submitted by: sada (slightly altered)
This commit is contained in:
parent
4177135638
commit
d76beff66d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70531
@ -96,10 +96,16 @@ TARGETS+= tags
|
||||
|
||||
.for __target in ${TARGETS}
|
||||
.if !target(${__target})
|
||||
.if defined(SUBDIR) && !empty(SUBDIR)
|
||||
${__target}: ${SUBDIR:S/$/.${__target}/}
|
||||
.else
|
||||
${__target}:
|
||||
.endif
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if defined(SUBDIR) && !empty(SUBDIR)
|
||||
|
||||
.for __target in ${TARGETS} checksubdirs readmes
|
||||
${SUBDIR:S/$/.${__target}/}: _SUBDIRUSE
|
||||
.endfor
|
||||
@ -129,6 +135,8 @@ _SUBDIRUSE: .USE
|
||||
|
||||
${SUBDIR}:: ${SUBDIR:S/$/.all/}
|
||||
|
||||
.endif
|
||||
|
||||
.if !target(install)
|
||||
.if !target(beforeinstall)
|
||||
beforeinstall:
|
||||
|
Loading…
Reference in New Issue
Block a user