diff options
author | Rob Savoye | 2010-11-01 16:01:44 -0600 |
---|---|---|
committer | Eric Blossom | 2010-11-10 12:15:43 -0800 |
commit | 1e6d760acfe470abf984e77f0e82001a8d9210a3 (patch) | |
tree | 44cf48aeeae50603134d59beffaec83e90e07b41 | |
parent | 1f088ee6731f74649cb013a216e4b66b740971b7 (diff) | |
download | gnuradio-1e6d760acfe470abf984e77f0e82001a8d9210a3.tar.gz gnuradio-1e6d760acfe470abf984e77f0e82001a8d9210a3.tar.bz2 gnuradio-1e6d760acfe470abf984e77f0e82001a8d9210a3.zip |
switch swig rule for guile from suffix to pattern rule
-rw-r--r-- | Makefile.common | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index 37df2b8cf..82e33952a 100644 --- a/Makefile.common +++ b/Makefile.common @@ -20,6 +20,10 @@ # Boston, MA 02110-1301, USA. # +# Make rebuilds less verbose with stuff we can safely ignore +# about GNU make only extensions. +AUTOMAKE += -Wno-portability -Wnone + AM_CFLAGS = @autoconf_default_CFLAGS@ @lf_CFLAGS@ AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ @lf_CXXFLAGS@ @@ -125,7 +129,7 @@ if GUILE # Compile a .i to what guile needs. We use -o to set the output file name, # or even with -outdir guile in SWIG_GUILE_ARGS, swig keeps putting a # gnuradio_core_*_wrap.cxx in the source directory. -.i.scm: +gnuradio/%.scm : %.i @echo "Compile .i to .scm" @test -d "guile" || $(mkinstalldirs) "guile" @test -d "gnuradio" || $(mkinstalldirs) "gnuradio" @@ -134,7 +138,6 @@ if GUILE -module $* -o guile/$*.cc $< sed -e 's:guile/gnuradio_core_runtime.cc:gnuradio_core_runtime.scm:' guile/$*.Std > guile/$*.d $(RM) guile/$*.Std $*.Std - touch $*.scm $(SED) -i -e 's/<--dummy-[0-9]\+-->/<top>/g' gnuradio/$*.scm $(SED) -i -e 's/^(export /(export-safely /' gnuradio/$*.scm endif @@ -150,8 +153,14 @@ endif $(RM) python/$*.Std # Don't distribute the files defined in the variable 'no_dist_files' +no_dist_dirs = python gnuradio guile dist-hook: + @for dir in $(no_dist_dirs); do \ + echo $(RM) -fr $(distdir)/$$dir; \ + $(RM) -fr $(distdir)/$$dir; \ + done; @for file in $(no_dist_files); do \ echo $(RM) $(distdir)/$$file; \ $(RM) $(distdir)/$$file; \ done; + |