summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-howto-write-a-block/Makefile.common5
-rw-r--r--gr-howto-write-a-block/configure.ac1
-rw-r--r--gr-howto-write-a-block/doc/Makefile.am2
3 files changed, 7 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/Makefile.common b/gr-howto-write-a-block/Makefile.common
index 31a31232a..0160c354a 100644
--- a/gr-howto-write-a-block/Makefile.common
+++ b/gr-howto-write-a-block/Makefile.common
@@ -36,3 +36,8 @@ grpyexecdir = $(pyexecdir)/gnuradio
# swig flags
SWIGPYTHONFLAGS = -fvirtual -python -modern
SWIGGRFLAGS = -I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(GNURADIO_CORE_INCLUDEDIR)
+
+# Don't assume that make predefines $(RM), because BSD make does
+# not. We define it now in configure.ac using AM_PATH_PROG, but now
+# here have to add a -f to be like GNU make.
+RM=$(RM_PROG) -f
diff --git a/gr-howto-write-a-block/configure.ac b/gr-howto-write-a-block/configure.ac
index 7035599d5..9cf72f093 100644
--- a/gr-howto-write-a-block/configure.ac
+++ b/gr-howto-write-a-block/configure.ac
@@ -36,6 +36,7 @@ GR_PROG_AS
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_INSTALL
+AC_PATH_PROG([RM_PROG], [rm])
AC_LIBTOOL_WIN32_DLL
AC_ENABLE_SHARED dnl do build shared libraries
diff --git a/gr-howto-write-a-block/doc/Makefile.am b/gr-howto-write-a-block/doc/Makefile.am
index 07e6f5961..5ca6a5a39 100644
--- a/gr-howto-write-a-block/doc/Makefile.am
+++ b/gr-howto-write-a-block/doc/Makefile.am
@@ -72,7 +72,7 @@ howto_square2_ff.h.xml: $(top_srcdir)/src/lib/howto_square2_ff.h make_numbered_l
# ----------------------------------------------------------------
clean:
- -rm -f $(TARGETS) $(BUILT_XML_FILES)
+ -${RM} -f $(TARGETS) $(BUILT_XML_FILES)
%.html : %.xml
xmlto html-nochunks $<