diff options
author | ru <ru@FreeBSD.org> | 2002-04-22 09:12:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-22 09:12:18 +0000 |
commit | f29995be3e0ce16da78e056f0d031f205e652bc9 (patch) | |
tree | 978729296ffc3da0e9b304cab9c45175db241218 /share | |
parent | d6b78ab8eb531a5ce4fe3c0cf514d22e52878b6a (diff) | |
download | FreeBSD-src-f29995be3e0ce16da78e056f0d031f205e652bc9.zip FreeBSD-src-f29995be3e0ce16da78e056f0d031f205e652bc9.tar.gz |
Fixed _SUBDIR.
Obtained from: bsd.subdir.mk
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.obj.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index cb1d794..9b39160 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -169,13 +169,17 @@ ${__target}: _SUBDIR _SUBDIR: .USE .if defined(SUBDIR) && !empty(SUBDIR) @for entry in ${SUBDIR}; do \ - (${ECHODIR} "===> ${DIRPRFX}$$entry"; \ if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ - cd ${.CURDIR}/$${entry}.${MACHINE_ARCH}; \ + ${ECHODIR} "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH}"; \ + edir=$${entry}.${MACHINE_ARCH}; \ + cd ${.CURDIR}/$${edir}; \ else \ - cd ${.CURDIR}/$${entry}; \ + ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ + edir=$${entry}; \ + cd ${.CURDIR}/$${edir}; \ fi; \ - ${MAKE} ${.TARGET:S/realinstall/install/} DIRPRFX=${DIRPRFX}$$entry/); \ + ${MAKE} ${.TARGET:realinstall=install} \ + DIRPRFX=${DIRPRFX}$$edir/; \ done .endif |