summaryrefslogtreecommitdiff
path: root/Makefile.swig
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.swig')
-rw-r--r--Makefile.swig15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.swig b/Makefile.swig
index 9e14835e5..f4ef3de89 100644
--- a/Makefile.swig
+++ b/Makefile.swig
@@ -71,6 +71,21 @@ STD_SWIG_CXX_FLAGS = @swig_CXXFLAGS@
SUFFIXES = .i
+## Create the swig interface file swig_doc.i containing docstring information.
+
+$(top_srcdir)/gnuradio-core/src/lib/swig/swig_doc.i: $(top_srcdir)/docs/doxygen/html/index.html
+ $(PYTHON) $(top_srcdir)/gnuradio-core/src/lib/swig/swig_doc.py $(top_srcdir)/docs/doxygen/xml/ $(top_srcdir)/gnuradio-core/src/lib/swig/swig_doc.i
+
+## Make sure the doxygen docs are generated
+
+$(top_srcdir)/docs/doxygen/html/index.html:
+ docs_prep
+ @DOXYGEN@
+
+docs_prep:
+ $(MKDIR_P) html
+ $(MKDIR_P) xml
+
## Create $(srcdir)/Makefile.swig.gen, containing all of the rules
## for running SWIG to generate or re-generate outputs. SWIG file
## names are to be defined in TOP_SWIG_IFILES, and must include the