aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.am5
-rw-r--r--Makefile.in5
-rw-r--r--extension/ChangeLog7
-rw-r--r--extension/Makefile.am7
-rw-r--r--extension/Makefile.in7
6 files changed, 24 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index cc69b2e7..cf9f62b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,9 +13,9 @@
Unrelated:
- * Makefile.am (dist-hook): Replace use of $(RM) by rm -f; not all
- versions of make set that variable. Thanks to Jeremie
- Courreges-Anglas <jca@wxcvbn.org> for the report.
+ * Makefile.am (RM): Define for makes that don't have it,
+ such as on OpenBSD. Thanks to Jeremie Courreges-Anglas
+ <jca@wxcvbn.org> for the report.
2014-08-05 Arnold D. Robbins <arnold@skeeve.com>
diff --git a/Makefile.am b/Makefile.am
index c14a39b3..9a5e1618 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -144,6 +144,9 @@ CLEANFILES = core core.*
# We want hard links for install-exec-hook, below
LN= ln
+# For some make's, e.g. OpenBSD, that don't define this
+RM = rm -f
+
# First, add a link from gawk to gawk-X.Y.Z.
#
# For GNU systems where gawk is awk, add a link to awk.
@@ -176,7 +179,7 @@ dist-hook:
sed -n -f configpk.sed < ../configure.ac > /tmp/tmp.sed ; \
sed -f config.sed < ../configh.in > /tmp/config.tmp ; \
sed -f /tmp/tmp.sed < /tmp/config.tmp > config.h ; \
- rm -f /tmp/tmp.sed /tmp/config.tmp
+ $(RM) /tmp/tmp.sed /tmp/config.tmp
pwd
chmod u+w $(distdir)/pc/config.h
cp $(srcdir)/pc/config.h $(distdir)/pc/config.h
diff --git a/Makefile.in b/Makefile.in
index ae307ff4..c44d10b5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -542,6 +542,9 @@ CLEANFILES = core core.*
# We want hard links for install-exec-hook, below
LN = ln
+
+# For some make's, e.g. OpenBSD, that don't define this
+RM = rm -f
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
@@ -1175,7 +1178,7 @@ dist-hook:
sed -n -f configpk.sed < ../configure.ac > /tmp/tmp.sed ; \
sed -f config.sed < ../configh.in > /tmp/config.tmp ; \
sed -f /tmp/tmp.sed < /tmp/config.tmp > config.h ; \
- rm -f /tmp/tmp.sed /tmp/config.tmp
+ $(RM) /tmp/tmp.sed /tmp/config.tmp
pwd
chmod u+w $(distdir)/pc/config.h
cp $(srcdir)/pc/config.h $(distdir)/pc/config.h
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 295e72cc..f324bdeb 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,9 +1,8 @@
2014-08-12 Arnold D. Robbins <arnold@skeeve.com>
- * Makefile.am (install-data-hook): Replace use of $(RM) by rm -f;
- not all versions of make set that variable. Thanks to Jeremie
- Courreges-Anglas <jca@wxcvbn.org> for the report.
- (uninstall-so): Ditto.
+ * Makefile.am (RM): Define for makes that don't have it,
+ such as on OpenBSD. Thanks to Jeremie Courreges-Anglas
+ <jca@wxcvbn.org> for the report.
2014-06-13 Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/extension/Makefile.am b/extension/Makefile.am
index b6c969ba..e6678c54 100644
--- a/extension/Makefile.am
+++ b/extension/Makefile.am
@@ -29,6 +29,9 @@ AM_CPPFLAGS = -I$(srcdir)/..
# correctly after changing configure.ac
ACLOCAL_AMFLAGS = -I m4
+# For some make's, e.g. OpenBSD, that don't define this
+RM = rm -f
+
# Note: rwarray does not currently compile.
pkgextension_LTLIBRARIES = \
@@ -100,12 +103,12 @@ testext_la_LIBADD = $(MY_LIBS)
install-data-hook:
for i in $(pkgextension_LTLIBRARIES) ; do \
- rm -f $(DESTDIR)$(pkgextensiondir)/$$i ; \
+ $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \
done
# Keep the uninstall check working:
uninstall-so:
- rm -f $(DESTDIR)$(pkgextensiondir)/*.so
+ $(RM) $(DESTDIR)$(pkgextensiondir)/*.so
uninstall-recursive: uninstall-so
diff --git a/extension/Makefile.in b/extension/Makefile.in
index 692998bf..46168e4e 100644
--- a/extension/Makefile.in
+++ b/extension/Makefile.in
@@ -513,6 +513,9 @@ AM_CPPFLAGS = -I$(srcdir)/..
# correctly after changing configure.ac
ACLOCAL_AMFLAGS = -I m4
+# For some make's, e.g. OpenBSD, that don't define this
+RM = rm -f
+
# Note: rwarray does not currently compile.
pkgextension_LTLIBRARIES = \
filefuncs.la \
@@ -1231,12 +1234,12 @@ uninstall-man: uninstall-man3
install-data-hook:
for i in $(pkgextension_LTLIBRARIES) ; do \
- rm -f $(DESTDIR)$(pkgextensiondir)/$$i ; \
+ $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \
done
# Keep the uninstall check working:
uninstall-so:
- rm -f $(DESTDIR)$(pkgextensiondir)/*.so
+ $(RM) $(DESTDIR)$(pkgextensiondir)/*.so
uninstall-recursive: uninstall-so