summaryrefslogtreecommitdiffstats
path: root/lib/compat/compat20/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compat/compat20/Makefile')
-rw-r--r--lib/compat/compat20/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/compat/compat20/Makefile b/lib/compat/compat20/Makefile
index dc2df65..4a4c356 100644
--- a/lib/compat/compat20/Makefile
+++ b/lib/compat/compat20/Makefile
@@ -19,7 +19,11 @@ beforeinstall:
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
- 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.
OpenPOWER on IntegriCloud