doc: Clean up signature generation a bit more
[platform/upstream/gobject-introspection.git] / Makefile-tools.am
index 7bc2f3f..34d2a25 100644 (file)
@@ -1,6 +1,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
+
+if BUILD_DOCTOOL
+bin_SCRIPTS += g-ir-doc-tool
+endif
+
+EXTRA_DIST +=                          \
+       tools/g-ir-scanner.in           \
+       tools/g-ir-annotation-tool.in   \
+       tools/g-ir-doc-tool.in
 
 TOOL_SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
 
@@ -12,6 +20,10 @@ g-ir-annotation-tool: tools/g-ir-annotation-tool.in _giscanner.la Makefile
        $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
        @chmod a+x $@
 
+g-ir-doc-tool: tools/g-ir-doc-tool.in _giscanner.la Makefile
+       $(AM_V_GEN) $(TOOL_SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
+       @chmod a+x $@
+
 g_ir_compiler_SOURCES = tools/compiler.c
 g_ir_compiler_CPPFLAGS = -DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
                         -I$(top_srcdir)/girepository
@@ -34,4 +46,4 @@ GCOVSOURCES =                                 \
        $(g_ir_compiler_SOURCES)                \
        $(g_ir_generate_SOURCES)
 
-CLEANFILES += g-ir-scanner g-ir-annotation-tool
+CLEANFILES += g-ir-scanner g-ir-annotation-tool g-ir-doc-tool