[beast] BSE: pybse: let srcdir relative files depend on build sources



commit e78a9a1099e448a38624b498a6d4ed4cd7d6ad29
Author: Tim Janik <timj gnu org>
Date:   Thu Mar 31 16:05:30 2016 +0200

    BSE: pybse: let srcdir relative files depend on build sources
    
    We let existing sources files depend on build sources,
    so the build sources get built *before* compilation. For builds with
    srcdir!=builddir, this only works if those source files are specified
    srcdir relative.
    
    Signed-off-by: Tim Janik <timj gnu org>

 bse/pybse/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bse/pybse/Makefile.am b/bse/pybse/Makefile.am
index 8bbd5b5..a71e0bc 100644
--- a/bse/pybse/Makefile.am
+++ b/bse/pybse/Makefile.am
@@ -14,13 +14,13 @@ AIDACC_VDEBUG = $(AIDACC) $(if $(findstring 1, $(V)), --aida-debug)
 # == Pyx ==
 AIDASTDINC = $(shell ${AIDACC} -x PyxxStub.py -G --print-include-path /dev/null)
 # Python 'Bse' module build via Cython
-Bse.pyx: bseidlapi.pyx
+$(srcdir)/Bse.pyx: bseidlapi.pyx
 bseidlapi.pyx: ../bseapi.idl
        $(AM_V_GEN)
        $(Q) ${AIDACC} -x PyxxStub.py $< -o $@ -G strip-path=$(abs_top_srcdir)/
 Bse.cc: Bse.pyx bseidlapi.pyx
        @echo "  CYTHON  " $@
-       $(Q) cython --cplus -Wextra -Werror --fast-fail -I. -I$(AIDASTDINC) Bse.pyx -o $@
+       $(Q) cython --cplus -Wextra -Werror --fast-fail -I. -I$(AIDASTDINC) $(srcdir)/Bse.pyx -o $@
        @: # FIXME: CYTHON
 # pythondir = ${prefix}/lib/pythonX.Y/site-packages
 pymodulesdir          = ${bselibdir}/pymodules


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]