summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compat/compat1x/Makefile6
-rw-r--r--lib/compat/compat20/Makefile6
-rw-r--r--lib/compat/compat21/Makefile6
-rw-r--r--lib/compat/compat22/Makefile6
-rw-r--r--lib/compat/compat3x.i386/Makefile6
-rw-r--r--lib/compat/compat4x.alpha/Makefile6
-rw-r--r--lib/compat/compat4x.i386/Makefile6
7 files changed, 35 insertions, 7 deletions
diff --git a/lib/compat/compat1x/Makefile b/lib/compat/compat1x/Makefile
index ce1f887..15cb674 100644
--- a/lib/compat/compat1x/Makefile
+++ b/lib/compat/compat1x/Makefile
@@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${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.
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.
diff --git a/lib/compat/compat21/Makefile b/lib/compat/compat21/Makefile
index 7d58eb3..d56aa88 100644
--- a/lib/compat/compat21/Makefile
+++ b/lib/compat/compat21/Makefile
@@ -18,7 +18,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.
diff --git a/lib/compat/compat22/Makefile b/lib/compat/compat22/Makefile
index f919517..404a30c 100644
--- a/lib/compat/compat22/Makefile
+++ b/lib/compat/compat22/Makefile
@@ -32,7 +32,11 @@ beforeinstall:
@${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \
cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
ln -sf libtermcap.so.2.1 libtermlib.so.2.1
- 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.
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.
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.
diff --git a/lib/compat/compat4x.i386/Makefile b/lib/compat/compat4x.i386/Makefile
index 52857f1..c01909a 100644
--- a/lib/compat/compat4x.i386/Makefile
+++ b/lib/compat/compat4x.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.
OpenPOWER on IntegriCloud