diff options
author | peter <peter@FreeBSD.org> | 2001-09-21 09:22:34 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-21 09:22:34 +0000 |
commit | a1be98c18402179b50502902f1a68fe1cc0d306c (patch) | |
tree | 68d7ef24ae86a5ea56c148ad625ab12a30f6344d /lib/compat/compat3x.i386 | |
parent | c305ea1ee595497ab46c3455252f0c1c16a98869 (diff) | |
download | FreeBSD-src-a1be98c18402179b50502902f1a68fe1cc0d306c.zip FreeBSD-src-a1be98c18402179b50502902f1a68fe1cc0d306c.tar.gz |
Replace my stale-lib cleanup with a better one. (less noisy)
Submitted by: ru
Diffstat (limited to 'lib/compat/compat3x.i386')
-rw-r--r-- | lib/compat/compat3x.i386/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/compat/compat3x.i386/Makefile b/lib/compat/compat3x.i386/Makefile index 492a423..ee650a2 100644 --- a/lib/compat/compat3x.i386/Makefile +++ b/lib/compat/compat3x.i386/Makefile @@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu beforeinstall: ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR} - rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} +.for lib in ${LIBS} +.if exists(${DESTDIR}${SHLIBDIR}/${lib}) + rm -f ${DESTDIR}${SHLIBDIR}/${lib} +.endif +.endfor # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. |