summaryrefslogtreecommitdiffstats
path: root/lib/compat/compat4x.alpha/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compat/compat4x.alpha/Makefile')
-rw-r--r--lib/compat/compat4x.alpha/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/compat/compat4x.alpha/Makefile b/lib/compat/compat4x.alpha/Makefile
index 52857f1..c01909a 100644
--- a/lib/compat/compat4x.alpha/Makefile
+++ b/lib/compat/compat4x.alpha/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.
OpenPOWER on IntegriCloud