From aaa98c095a85724a8782a28717162c1d30d865c2 Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Sat, 7 Apr 2012 20:03:25 -0400
Subject: gruel and howto: install gruel .i files in gruel dest. Howto will use
 that dir during build.

howto under both cmake and autotools can be built off cmake or autotools gnuradio builds.
---
 gr-howto-write-a-block/Makefile.common         | 3 ++-
 gr-howto-write-a-block/config/gr_standalone.m4 | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

(limited to 'gr-howto-write-a-block')

diff --git a/gr-howto-write-a-block/Makefile.common b/gr-howto-write-a-block/Makefile.common
index fca6133c14..2b9cc75afc 100644
--- a/gr-howto-write-a-block/Makefile.common
+++ b/gr-howto-write-a-block/Makefile.common
@@ -56,7 +56,8 @@ STD_DEFINES_AND_INCLUDES = \
 	$(DEFINES) \
 	-I$(abs_top_srcdir)/lib \
 	-I$(GNURADIO_CORE_INCLUDEDIR) \
-	-I$(GNURADIO_CORE_INCLUDEDIR)/swig
+	-I$(GNURADIO_CORE_INCLUDEDIR)/swig \
+	-I$(GRUEL_INCLUDEDIR)/gruel/swig
 
 # includes
 modincludedir = $(includedir)/$(modname)
diff --git a/gr-howto-write-a-block/config/gr_standalone.m4 b/gr-howto-write-a-block/config/gr_standalone.m4
index beb98204c6..5ba48892f5 100644
--- a/gr-howto-write-a-block/config/gr_standalone.m4
+++ b/gr-howto-write-a-block/config/gr_standalone.m4
@@ -109,6 +109,7 @@ m4_define([GR_STANDALONE],
   AM_CONDITIONAL([HAS_XMLTO], [test x$XMLTO = xyes])
 
   PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 3)
+  PKG_CHECK_MODULES(GRUEL, gruel >= 3)
   LIBS="$LIBS $GNURADIO_CORE_LIBS"
 
   gnuradio_core_GUILE_LOAD_PATH="`pkg-config --variable=guile_load_path gnuradio-core`"
-- 
cgit v1.2.3