# A Makefile for handling subdirectories.
# Machine dependent subdirectories take precedence.
# @(#)bsd.subdir.mk 5.3 (Berkeley) %G%
# SUBDIR -- the list of subdirectories to be processed
# The standard targets change to the subdirectory and make the
STDALL STDDEPEND STDCLEAN STDCLEANDIR STDLINT STDINSTALL STDTAGS
: .USE
@for entry in
${SUBDIR}; do \
if
test -d
${.CURDIR
}/$${entry}.
${MACHINE}; then \
cd
${.CURDIR
}/$${entry}.
${MACHINE}; \
cd
${.CURDIR
}/$${entry}; \
# If the user has not specified the target, use the standard version.
# If trying to make one of the subdirectories, change to it and make
@if
test -d
${.TARGET
}.
${MACHINE}; then \
cd
${.CURDIR
}/${.TARGET
}.
${MACHINE}; \
cd
${.CURDIR
}/${.TARGET
}; \