diff options
author | ru <ru@FreeBSD.org> | 2001-04-26 11:14:50 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-04-26 11:14:50 +0000 |
commit | 9e075698f2cd039453544a5fc933db5fac69d588 (patch) | |
tree | 01fc74857f9b3707ade47d0d01be79148fae036a /share | |
parent | cfead2f77cc6890b2d9a29d114a800f86d4dc760 (diff) | |
download | FreeBSD-src-9e075698f2cd039453544a5fc933db5fac69d588.zip FreeBSD-src-9e075698f2cd039453544a5fc933db5fac69d588.tar.gz |
... and do it make(1) way.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.obj.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index 89e56ab8..920d200 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -97,11 +97,11 @@ whereobj: .endif cleanobj: - @if [ "${CANONICALOBJDIR}" != "${.CURDIR}" -a -d ${CANONICALOBJDIR}/ ]; then \ - rm -rf ${CANONICALOBJDIR}; \ - else \ - cd ${.CURDIR} && ${MAKE} clean cleandepend; \ - fi +.if ${CANONICALOBJDIR} != ${.CURDIR} && exists(${CANONICALOBJDIR}/) + @rm -rf ${CANONICALOBJDIR} +.else + @cd ${.CURDIR} && ${MAKE} clean cleandepend +.endif @if [ -h ${.CURDIR}/obj ]; then rm -f ${.CURDIR}/obj; fi .if !target(clean) |