From a22c45683f683a01d4d2d858d28fbfe2275458e8 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Fri, 5 May 1995 18:00:30 +0000 Subject: [PATCH] In target libraries: make and install libcompat before all other libraries. This fixes the make -DCLOBBER world problem. Check that gnu exists before attempting to build the libraries in that branch of the tree. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a8b0f9837986..1c9df0d05512 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.52 1995/03/28 18:14:17 sos Exp $ +# $Id: Makefile,v 1.53 1995/04/27 11:25:48 jkh Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include and MOST of /usr/lib @@ -258,10 +258,16 @@ libraries: find ${DESTDIR}/usr/lib \! -name '*.s[ao].*' -a \! -type d | \ xargs rm -rf .endif +.if exists(lib/libcompat) + cd ${.CURDIR}/lib/libcompat && \ + ${MAKE} depend all install +.endif +.if exists(gnu) cd ${.CURDIR}/gnu/lib && \ ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} cd ${.CURDIR}/gnu/usr.bin/cc/libgcc && \ ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} +.endif .if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) cd ${.CURDIR}/secure/lib && \ ${MAKE} depend all install ${CLEANDIR} ${OBJDIR}