diff options
-rw-r--r-- | Makefile.common | 7 | ||||
-rw-r--r-- | Makefile.swig.gen.t | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index cccfb133d..0e4cb9eb7 100644 --- a/Makefile.common +++ b/Makefile.common @@ -122,8 +122,10 @@ if GUILE @echo "Compile .i to .scm" @test -d "guile" || $(mkinstalldirs) "guile" $(SWIG) $(STD_SWIG_GUILE_ARGS) $($*_swig_args) \ + -MD -MF guile/$*.Std \ -module $* -o guile/$*.cc $< -# -MD -MF guile/$(DEPDIR)/$*.Std + sed -e 's:guile/gnuradio_swig_py_runtime.cc:gnuradio_swig_py_runtime.scm:' guile/$*.Std > guile/$*.d + $(RM) guile/$*.Std endif # Compile a .i file to what python needs @@ -131,7 +133,10 @@ endif @echo "Compile .i to .py" @test -d "python" || $(mkinstalldirs) "python" $(SWIG) $(STD_SWIG_PYTHON_ARGS) $($*_swig_args) \ + -MD -MF python/$*.Std \ -module $* -o python/$*.cc -oh python/$*.h $< + sed -e 's:python/gnuradio_swig_py_runtime.cc:gnuradio_swig_py_runtime.py:' python/$*.Std > python/$*.d + $(RM) python/$*.Std # Don't distribute the files defined in the variable 'no_dist_files' dist-hook: diff --git a/Makefile.swig.gen.t b/Makefile.swig.gen.t index cf8aab393..39d11bf25 100644 --- a/Makefile.swig.gen.t +++ b/Makefile.swig.gen.t @@ -136,7 +136,6 @@ if GUILE @NAME@_guile_la_CXXFLAGS = $(_@NAME@_la_CXXFLAGS) guile/@NAME@.lo: @NAME@.lo -#@NAME@.lo: @NAME@.scm @NAME@.scm: @NAME@.i endif # end of GUILE @@ -145,3 +144,4 @@ python/@NAME@.lo: @NAME@.lo: @NAME@.py @NAME@.scm @NAME@.py: @NAME@.i +-include python/@NAME@.d |