[gobject-introspection] Fix non-source-dir build failure



commit 26c66df6bdc3e3ce836c7462958fa38cc3e1062f
Author: Theppitak Karoonboonyanan <thep linux thai net>
Date:   Fri Jul 2 18:19:57 2010 +0700

    Fix non-source-dir build failure
    
    Make sure all giscanner python files are available in builddir, so the module
    is invokable during build time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=571591
    
    Signed-off-by: Theppitak Karoonboonyanan <thep linux thai net>

 giscanner/Makefile.am |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/Makefile.am b/giscanner/Makefile.am
index a2044cf..05724dc 100644
--- a/giscanner/Makefile.am
+++ b/giscanner/Makefile.am
@@ -56,6 +56,15 @@ pkgpyexec_PYTHON = 		\
 	utils.py		\
 	xmlwriter.py
 
+# Make sure all python files are available in builddir, so the module can be 
+# invoked by other tools during build time
+all-local:
+	for file in $(pkgpyexec_PYTHON); do			\
+	    if [ ! -f $$file ]; then				\
+	        $(LN_S) $(srcdir)/$$file $$file;		\
+	    fi							\
+	done
+
 _giscanner_la_CFLAGS = \
 	$(PYTHON_INCLUDES) \
 	$(GOBJECT_CFLAGS) \



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