diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-14 22:18:15 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-14 22:18:15 +0000 |
commit | 867341c82f0fdb371c0d87292cf1d8f096324885 (patch) | |
tree | d7ccc1be0aa080c0a676c4f73c2ed86ca632177c /share/mk/bsd.lib.mk | |
parent | 8d8fef4caf8b0eee3dcd6ca74d07b1f12a4a0672 (diff) | |
download | FreeBSD-src-867341c82f0fdb371c0d87292cf1d8f096324885.zip FreeBSD-src-867341c82f0fdb371c0d87292cf1d8f096324885.tar.gz |
Slightly more complete implementation of SUBDIR for libraries.
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 2041fec..71d9bfc 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.18 1995/01/14 07:51:07 jkh Exp $ +# $Id: bsd.lib.mk,v 1.19 1995/01/14 22:14:54 wollman Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -212,7 +212,7 @@ llib-l${LIB}.ln: ${SRCS} ${LINT} -C${LIB} ${CFLAGS} ${.ALLSRC:M*.c} .if !target(clean) -clean: +clean: _LIBSUBDIR rm -f a.out Errs errs mklog ${CLEANFILES} ${OBJS} rm -f lib${LIB}.a llib-l${LIB}.ln rm -f ${POBJS} profiled/*.o lib${LIB}_p.a @@ -221,7 +221,7 @@ clean: .endif .if !target(cleandir) -cleandir: +cleandir: _LIBSUBDIR rm -f a.out Errs errs mklog ${CLEANFILES} ${OBJS} rm -f lib${LIB}.a llib-l${LIB}.ln rm -f ${.CURDIR}/tags .depend @@ -284,7 +284,7 @@ realinstall: beforeinstall done; true .endif -install: afterinstall +install: afterinstall _LIBSUBDIR .if !defined(NOMAN) afterinstall: realinstall maninstall .else @@ -294,7 +294,7 @@ afterinstall: realinstall DISTRIBUTION?= bin .if !target(distribute) -distribute: +distribute: _LIBSUBDIR cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies .endif @@ -316,9 +316,9 @@ maninstall: .if !target(obj) .if defined(NOOBJ) -obj: +obj: _LIBSUBDIR .else -obj: +obj: _LIBSUBDIR @cd ${.CURDIR}; rm -rf obj; \ here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \ ${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \ |