summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-03-16 15:36:21 -0400
committerColin Walters <walters@verbum.org>2009-03-16 15:36:21 -0400
commit1d1cc8c35364f9da12620c1925483b61dc688718 (patch)
treed5837cdceb69689fe63ebc95ac32843b25151fb0 /tools
parent6531a094d73703c0c16777bdc82252688d1c7d51 (diff)
downloadgobject-introspection-1d1cc8c35364f9da12620c1925483b61dc688718.tar.gz
Substitute g-ir-scanner in Makefile, not in configure.ac
This avoids issues with unexpanded variables, i.e. ${exec_prefix}/libdir
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 706b5e30..4aefb0ab 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -8,6 +8,10 @@ bin_PROGRAMS = g-ir-compiler g-ir-generate
bin_SCRIPTS = g-ir-scanner
EXTRA_DIST = g-ir-scanner
+g-ir-scanner: g-ir-scanner.in Makefile
+ sed -e s,@libdir\@,$(libdir), $< > $@.tmp && mv $@.tmp $@
+ chmod a+x $@
+
g_ir_compiler_SOURCES = compiler.c
g_ir_compiler_CFLAGS = $(GIREPO_CFLAGS)
g_ir_compiler_LDADD = \