summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/swig
diff options
context:
space:
mode:
Diffstat (limited to 'gr-howto-write-a-block/swig')
-rw-r--r--gr-howto-write-a-block/swig/Makefile.am3
-rw-r--r--gr-howto-write-a-block/swig/Makefile.swig.gen2
2 files changed, 4 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/swig/Makefile.am b/gr-howto-write-a-block/swig/Makefile.am
index 7ec3a7cbc..66d08eaf3 100644
--- a/gr-howto-write-a-block/swig/Makefile.am
+++ b/gr-howto-write-a-block/swig/Makefile.am
@@ -36,6 +36,9 @@ TOP_SWIG_IFILES = \
# import howto
# This ends up at:
# ${prefix}/lib/python${python_version}/site-packages/$(modname)
+howto_swig_pythondir_category = $(modname)
+
+# additional libraries for linking with the SWIG-generated library
howto_swig_la_swig_libadd = \
$(top_builddir)/lib/libgnuradio-howto.la
diff --git a/gr-howto-write-a-block/swig/Makefile.swig.gen b/gr-howto-write-a-block/swig/Makefile.swig.gen
index 1e63fcb0d..6b7be2185 100644
--- a/gr-howto-write-a-block/swig/Makefile.swig.gen
+++ b/gr-howto-write-a-block/swig/Makefile.swig.gen
@@ -33,7 +33,7 @@
## this has to be done in the including Makefile.am -before-
## Makefile.swig is included.
-howto_swig_pythondir_category ?= gnuradio/howto
+howto_swig_pythondir_category ?= howto_swig
howto_swig_pylibdir_category ?= $(howto_swig_pythondir_category)
howto_swig_pythondir = $(pythondir)/$(howto_swig_pythondir_category)
howto_swig_pylibdir = $(pyexecdir)/$(howto_swig_pylibdir_category)