Only descend into the boot directory for the architecture if it
actually exists and is a directory or symlink to a directory.
This commit is contained in:
parent
a30c29f9f5
commit
b3f1e9378b
@ -23,6 +23,9 @@ SUBDIR+= uboot
|
||||
.endif
|
||||
|
||||
# Pick the machine-dependent subdir based on the target architecture.
|
||||
SUBDIR+= ${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
|
||||
ADIR= ${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
|
||||
.if exists(${.CURDIR}/${ADIR}/.)
|
||||
SUBDIR+= ${ADIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user