From 4f9b253ebe338b8208c856d6eddbd2488b598a48 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Tue, 2 Nov 2010 12:45:51 -0600 Subject: create a list of generated script fioles. --- Makefile.swig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile.swig') 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 -- cgit