summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye2010-11-02 12:45:51 -0600
committerEric Blossom2010-11-10 12:17:57 -0800
commit4f9b253ebe338b8208c856d6eddbd2488b598a48 (patch)
tree9b0a660423003017becda5d504b89e2c7d0488bc
parent9b6485b01f9d6c3169cae0efea4dfa4d1175950a (diff)
downloadgnuradio-4f9b253ebe338b8208c856d6eddbd2488b598a48.tar.gz
gnuradio-4f9b253ebe338b8208c856d6eddbd2488b598a48.tar.bz2
gnuradio-4f9b253ebe338b8208c856d6eddbd2488b598a48.zip
create a list of generated script fioles.
-rw-r--r--Makefile.swig12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.swig b/Makefile.swig
index 8d39fc60a..810157b55 100644
--- a/Makefile.swig
+++ b/Makefile.swig
@@ -32,7 +32,7 @@
## In some older autotools, $(builddir) is not defined, so
## just use '.' instead.
-CLEANFILES += python/*.cc python/*.h python/*.lo python/*.o
+CLEANFILES = python/*.cc python/*.h python/*.lo python/*.o
CLEANFILES += guile/*.cc gnuradio/*.scm guile/*.lo guile/*.o
SWIG_PYTHON_FLAGS = \
@@ -132,3 +132,13 @@ swig_built_sources =
## on variables defined above.
include $(srcdir)/Makefile.swig.gen
+
+# Create a list of .py files based on the top level .i files.
+PYTHON_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(subst .i,.py,$(HFILE)))
+swig_built_sources += $(PYTHON_GEN)
+
+if GUILE
+# Create a list of .scm files based on the top level .i files.
+GUILE_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,gnuradio/%.scm,$(HFILE)))
+swig_built_sources += $(GUILE_GEN)
+endif