summaryrefslogtreecommitdiff
path: root/Makefile.swig
diff options
context:
space:
mode:
authorEric Blossom2010-11-24 17:37:56 -0800
committerEric Blossom2010-11-24 17:37:56 -0800
commit5d03065c2f21e7f29533eea22aada42df473e74a (patch)
treebce81b491ec76218702c647056c4363e8251b676 /Makefile.swig
parentd692a41f98e7b888c745efbb9fcbbb0400f39025 (diff)
downloadgnuradio-5d03065c2f21e7f29533eea22aada42df473e74a.tar.gz
gnuradio-5d03065c2f21e7f29533eea22aada42df473e74a.tar.bz2
gnuradio-5d03065c2f21e7f29533eea22aada42df473e74a.zip
Move generate-makefile-swig rule to end of file
Diffstat (limited to 'Makefile.swig')
-rw-r--r--Makefile.swig63
1 files changed, 34 insertions, 29 deletions
diff --git a/Makefile.swig b/Makefile.swig
index 0980d5840..b4eddc985 100644
--- a/Makefile.swig
+++ b/Makefile.swig
@@ -85,6 +85,40 @@ STD_SWIG_LA_LIB_ADD = -lstdc++
STD_SWIG_CXX_FLAGS = @swig_CXXFLAGS@
+swig_built_sources =
+
+## include the built Makefile.swig.gen, always the one from the
+## srcdir; this must be included as the last item, because it depends
+## on variables defined above.
+
+include $(srcdir)/Makefile.swig.gen
+
+if PYTHON
+# Create a list of .py files based on the top level .i files.
+PYTHON_GEN = $(foreach IFILE,$(TOP_SWIG_IFILES), $(subst .i,.py,$(IFILE)))
+swig_built_sources += $(PYTHON_GEN)
+endif
+
+if GUILE
+# Create a list of .scm files based on the top level .i files.
+GUILE_GEN = $(foreach IFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,gnuradio/%.scm,$(IFILE)))
+swig_built_sources += $(GUILE_GEN)
+endif
+
+BUILT_SOURCES += $(swig_built_sources)
+
+# FIXME swig_all_built_sources
+no_dist_files = $(swig_built_sources)
+
+# FIXME swig_all_built_sources
+CLEANFILES += python/*.cc python/*.h python/*.lo python/*.o python/*.d
+CLEANFILES += guile/*.cc gnuradio/*.scm guile/*.lo guile/*.o guile/*.d
+
+
+## ------------------------------------------------------------------------
+## Rule that (re)generates Makefile.swig.gen using TOP_SWIG_IFILES and
+## Makefile.swig.gen.t
+##
## 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
@@ -122,32 +156,3 @@ generate-makefile-swig $(srcdir)/Makefile.swig.gen: $(top_srcdir)/Makefile.swig.
exit -1; \
fi;
-swig_built_sources =
-
-## include the built Makefile.swig.gen, always the one from the
-## srcdir; this must be included as the last item, because it depends
-## on variables defined above.
-
-include $(srcdir)/Makefile.swig.gen
-
-if PYTHON
-# Create a list of .py files based on the top level .i files.
-PYTHON_GEN = $(foreach IFILE,$(TOP_SWIG_IFILES), $(subst .i,.py,$(IFILE)))
-swig_built_sources += $(PYTHON_GEN)
-endif
-
-if GUILE
-# Create a list of .scm files based on the top level .i files.
-GUILE_GEN = $(foreach IFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,gnuradio/%.scm,$(IFILE)))
-swig_built_sources += $(GUILE_GEN)
-endif
-
-BUILT_SOURCES += $(swig_built_sources)
-
-# FIXME swig_all_built_sources
-no_dist_files = $(swig_built_sources)
-
-# FIXME swig_all_built_sources
-CLEANFILES += python/*.cc python/*.h python/*.lo python/*.o python/*.d
-CLEANFILES += guile/*.cc gnuradio/*.scm guile/*.lo guile/*.o guile/*.d
-