summaryrefslogtreecommitdiff
path: root/Makefile-tools.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-07-27 13:11:02 (GMT)
committerColin Walters <walters@verbum.org>2011-07-27 13:15:02 (GMT)
commit9fcd8fa140030a270507fba0915aafa4df0933e0 (patch)
tree8274af8d78332ca7a52aa2749b2d951638c2426e /Makefile-tools.am
parentf5f33223d876cefd56412df9d918ea7442f8322f (diff)
downloadgobject-introspection-9fcd8fa140030a270507fba0915aafa4df0933e0.tar.gz
gobject-introspection-9fcd8fa140030a270507fba0915aafa4df0933e0.tar.xz
Kill off config.py
Generating Python source code is problematic for srcdir != builddir; steal a the trick of putting global data in __builtins__ from jhbuild.
Diffstat (limited to 'Makefile-tools.am')
-rw-r--r--Makefile-tools.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile-tools.am b/Makefile-tools.am
index 31e6e71..c0dd788 100644
--- a/Makefile-tools.am
+++ b/Makefile-tools.am
@@ -2,12 +2,14 @@ bin_PROGRAMS += g-ir-compiler g-ir-generate
bin_SCRIPTS += g-ir-scanner g-ir-annotation-tool
EXTRA_DIST += tools/g-ir-scanner.in tools/g-ir-annotation-tool.in
+TOOL_SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@pkgdatadir\@,$(pkgdatadir), -e s,@PYTHON\@,$(PYTHON),
+
g-ir-scanner: tools/g-ir-scanner.in _giscanner.la Makefile
- $(AM_V_GEN) sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
+ $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
g-ir-annotation-tool: tools/g-ir-annotation-tool.in _giscanner.la Makefile
- $(AM_V_GEN) sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
+ $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
@chmod a+x $@
g_ir_compiler_SOURCES = tools/compiler.c