Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v rcsdiff: /ftp/cvs/cvsroot/src/share/mk/bsd.lib.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.3 diff -u -p -r1.1 -r1.3 --- src/share/mk/bsd.lib.mk 1993/03/21 09:45:37 1.1 +++ src/share/mk/bsd.lib.mk 1993/03/23 07:26:50 1.3 @@ -146,13 +146,23 @@ tags: ${SRCS} obj: .else obj: - @cd ${.CURDIR}; rm -rf obj; \ - here=`pwd`; dest=/usr/obj/`echo $$here | sed 's,/usr/src/,,'`; \ - echo "$$here -> $$dest"; ln -s $$dest obj; \ - if test -d /usr/obj -a ! -d $$dest; then \ - mkdir -p $$dest; \ + @cd ${.CURDIR}; rm -f obj > /dev/null 2>&1 || true; \ + here=`pwd`; subdir=`echo $$here | sed 's,^/usr/src/,,'`; \ + if test $$here != $$subdir ; then \ + dest=/usr/obj/$$subdir ; \ + echo "$$here -> $$dest"; ln -s $$dest obj; \ + if test -d /usr/obj -a ! -d $$dest; then \ + mkdir -p $$dest; \ + else \ + true; \ + fi; \ else \ - true; \ + true ; \ + dest=$$here/obj ; \ + echo "making $$here/obj" ; \ + if test ! -d obj ; then \ + mkdir $$here/obj; \ + fi; \ fi; .endif .endif