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:
imp 2008-07-23 07:23:33 +00:00
parent 89fba4c0a9
commit 33e1957f1b

View File

@ -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>