doc: Clean up signature generation a bit more
[platform/upstream/gobject-introspection.git] / Makefile-tools.am
1 bin_PROGRAMS += g-ir-compiler g-ir-generate
2 bin_SCRIPTS += g-ir-scanner g-ir-annotation-tool
3
4 if BUILD_DOCTOOL
5 bin_SCRIPTS += g-ir-doc-tool
6 endif
7
8 EXTRA_DIST +=                           \
9         tools/g-ir-scanner.in           \
10         tools/g-ir-annotation-tool.in   \
11         tools/g-ir-doc-tool.in
12
13 TOOL_SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
14
15 g-ir-scanner: tools/g-ir-scanner.in _giscanner.la Makefile
16         $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
17         @chmod a+x $@
18
19 g-ir-annotation-tool: tools/g-ir-annotation-tool.in _giscanner.la Makefile
20         $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
21         @chmod a+x $@
22
23 g-ir-doc-tool: tools/g-ir-doc-tool.in _giscanner.la Makefile
24         $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
25         @chmod a+x $@
26
27 g_ir_compiler_SOURCES = tools/compiler.c
28 g_ir_compiler_CPPFLAGS = -DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
29                          -I$(top_srcdir)/girepository
30 g_ir_compiler_CFLAGS = $(GIO_CFLAGS)
31 g_ir_compiler_LDADD = \
32         libgirepository-internals.la    \
33         libgirepository-1.0.la          \
34         $(GIREPO_LIBS)
35
36 g_ir_generate_SOURCES = tools/generate.c
37 g_ir_generate_CPPFLAGS = -DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
38                          -I$(top_srcdir)/girepository
39 g_ir_generate_CFLAGS = $(GIO_CFLAGS)
40 g_ir_generate_LDADD = \
41         libgirepository-internals.la    \
42         libgirepository-1.0.la          \
43         $(GIREPO_LIBS)
44
45 GCOVSOURCES =                                   \
46         $(g_ir_compiler_SOURCES)                \
47         $(g_ir_generate_SOURCES)
48
49 CLEANFILES += g-ir-scanner g-ir-annotation-tool g-ir-doc-tool