28 lines
578 B
Makefile
28 lines
578 B
Makefile
# $Id: bsd.obj.mk,v 1.1 1993/08/15 19:26:09 mycroft Exp $
|
|
|
|
.if !target(obj)
|
|
.if defined(NOOBJ)
|
|
obj:
|
|
.else
|
|
obj:
|
|
@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 ; \
|
|
dest=$$here/obj ; \
|
|
if test ! -d obj ; then \
|
|
echo "making $$dest" ; \
|
|
mkdir $$dest; \
|
|
fi ; \
|
|
fi;
|
|
.endif
|
|
.endif
|