From 0c7e5c527ea40167811b1bcbb24d52e002fdc726 Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Tue, 27 Apr 1993 00:00:00 +0000 Subject: [PATCH] Fix bsd.lib.mk so that sh args are not overflowed The number of arguments to the shell during a make cleandir in some of the libraries was too many. This splits the rm's up into 2 parts, making it easier for the shell to handle. AUTHOR: Rodney W. Grimes 386BSD-Patchkit: patch00157 --- usr/src/share/mk/bsd.lib.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/usr/src/share/mk/bsd.lib.mk b/usr/src/share/mk/bsd.lib.mk index c9f8459d1b..44dbeed194 100644 --- a/usr/src/share/mk/bsd.lib.mk +++ b/usr/src/share/mk/bsd.lib.mk @@ -1,4 +1,12 @@ # @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 +# +# PATCHES MAGIC LEVEL PATCH THAT GOT US HERE +# -------------------- ----- ---------------------- +# CURRENT PATCH LEVEL: 1 00157 +# -------------------- ----- ---------------------- +# +# 27 Apr 93 Rodney W. Grimes Break up cleandir so that we do not +# overflow shell args .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" @@ -83,9 +91,10 @@ clean: .if !target(cleandir) cleandir: - rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} ${POBJS} \ - profiled/*.o lib${LIB}.a lib${LIB}_p.a llib-l${LIB}.ln \ + rm -f a.out Errs errs mklog core ${CLEANFILES} ${OBJS} \ + lib${LIB}.a llib-l${LIB}.ln \ ${MANALL} ${.CURDIR}/tags .depend + rm -f ${POBJS} profiled/*.o lib${LIB}_p.a cd ${.CURDIR}; rm -rf obj; .endif -- 2.20.1