build: update builtin gtk-doc support
From gtkdocize (gtk-doc) 1.33.0.
This commit is contained in:
59
gtk-doc.make
59
gtk-doc.make
@@ -1,4 +1,22 @@
|
|||||||
# -*- mode: makefile -*-
|
# -*- mode: makefile -*-
|
||||||
|
#
|
||||||
|
# gtk-doc.make - make rules for gtk-doc
|
||||||
|
# Copyright (C) 2003 James Henstridge
|
||||||
|
# 2004-2007 Damon Chaplin
|
||||||
|
# 2007-2017 Stefan Sauer
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# Everything below here is generic #
|
# Everything below here is generic #
|
||||||
@@ -81,8 +99,8 @@ $(REPORT_FILES): sgml-build.stamp
|
|||||||
|
|
||||||
#### setup ####
|
#### setup ####
|
||||||
|
|
||||||
GTK_DOC_V_SETUP=$(GTK_DOC_V_SETUP_$(V))
|
GTK_DOC_V_SETUP=$(GTK_DOC_V_SETUP_@AM_V@)
|
||||||
GTK_DOC_V_SETUP_=$(GTK_DOC_V_SETUP_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_SETUP_=$(GTK_DOC_V_SETUP_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_SETUP_0=@echo " DOC Preparing build";
|
GTK_DOC_V_SETUP_0=@echo " DOC Preparing build";
|
||||||
|
|
||||||
setup-build.stamp:
|
setup-build.stamp:
|
||||||
@@ -99,15 +117,14 @@ setup-build.stamp:
|
|||||||
fi
|
fi
|
||||||
$(AM_V_at)touch setup-build.stamp
|
$(AM_V_at)touch setup-build.stamp
|
||||||
|
|
||||||
|
|
||||||
#### scan ####
|
#### scan ####
|
||||||
|
|
||||||
GTK_DOC_V_SCAN=$(GTK_DOC_V_SCAN_$(V))
|
GTK_DOC_V_SCAN=$(GTK_DOC_V_SCAN_@AM_V@)
|
||||||
GTK_DOC_V_SCAN_=$(GTK_DOC_V_SCAN_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_SCAN_=$(GTK_DOC_V_SCAN_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_SCAN_0=@echo " DOC Scanning header files";
|
GTK_DOC_V_SCAN_0=@echo " DOC Scanning header files";
|
||||||
|
|
||||||
GTK_DOC_V_INTROSPECT=$(GTK_DOC_V_INTROSPECT_$(V))
|
GTK_DOC_V_INTROSPECT=$(GTK_DOC_V_INTROSPECT_@AM_V@)
|
||||||
GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_INTROSPECT_0=@echo " DOC Introspecting gobjects";
|
GTK_DOC_V_INTROSPECT_0=@echo " DOC Introspecting gobjects";
|
||||||
|
|
||||||
scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
|
scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
|
||||||
@@ -138,8 +155,8 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)
|
|||||||
|
|
||||||
#### xml ####
|
#### xml ####
|
||||||
|
|
||||||
GTK_DOC_V_XML=$(GTK_DOC_V_XML_$(V))
|
GTK_DOC_V_XML=$(GTK_DOC_V_XML_@AM_V@)
|
||||||
GTK_DOC_V_XML_=$(GTK_DOC_V_XML_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_XML_=$(GTK_DOC_V_XML_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_XML_0=@echo " DOC Building XML";
|
GTK_DOC_V_XML_0=@echo " DOC Building XML";
|
||||||
|
|
||||||
sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent
|
sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent
|
||||||
@@ -153,6 +170,9 @@ sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HF
|
|||||||
sgml.stamp: sgml-build.stamp
|
sgml.stamp: sgml-build.stamp
|
||||||
@true
|
@true
|
||||||
|
|
||||||
|
$(DOC_MAIN_SGML_FILE): sgml-build.stamp
|
||||||
|
@true
|
||||||
|
|
||||||
xml/gtkdocentities.ent: Makefile
|
xml/gtkdocentities.ent: Makefile
|
||||||
$(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \
|
$(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \
|
||||||
echo "<!ENTITY package \"$(PACKAGE)\">"; \
|
echo "<!ENTITY package \"$(PACKAGE)\">"; \
|
||||||
@@ -166,12 +186,12 @@ xml/gtkdocentities.ent: Makefile
|
|||||||
|
|
||||||
#### html ####
|
#### html ####
|
||||||
|
|
||||||
GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_$(V))
|
GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_@AM_V@)
|
||||||
GTK_DOC_V_HTML_=$(GTK_DOC_V_HTML_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_HTML_=$(GTK_DOC_V_HTML_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_HTML_0=@echo " DOC Building HTML";
|
GTK_DOC_V_HTML_0=@echo " DOC Building HTML";
|
||||||
|
|
||||||
GTK_DOC_V_XREF=$(GTK_DOC_V_XREF_$(V))
|
GTK_DOC_V_XREF=$(GTK_DOC_V_XREF_@AM_V@)
|
||||||
GTK_DOC_V_XREF_=$(GTK_DOC_V_XREF_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_XREF_=$(GTK_DOC_V_XREF_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_XREF_0=@echo " DOC Fixing cross-references";
|
GTK_DOC_V_XREF_0=@echo " DOC Fixing cross-references";
|
||||||
|
|
||||||
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files)
|
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files)
|
||||||
@@ -190,20 +210,17 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_con
|
|||||||
cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
||||||
-@test "x$(HTML_IMAGES)" = "x" || \
|
-@test "x$(HTML_IMAGES)" = "x" || \
|
||||||
for file in $(HTML_IMAGES) ; do \
|
for file in $(HTML_IMAGES) ; do \
|
||||||
if test -f $(abs_srcdir)/$$file ; then \
|
test -f $(abs_srcdir)/$$file && cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
|
||||||
cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
|
test -f $(abs_builddir)/$$file && cp $(abs_builddir)/$$file $(abs_builddir)/html; \
|
||||||
fi; \
|
test -f $$file && cp $$file $(abs_builddir)/html; \
|
||||||
if test -f $(abs_builddir)/$$file ; then \
|
|
||||||
cp $(abs_builddir)/$$file $(abs_builddir)/html; \
|
|
||||||
fi; \
|
|
||||||
done;
|
done;
|
||||||
$(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
|
$(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
|
||||||
$(AM_V_at)touch html-build.stamp
|
$(AM_V_at)touch html-build.stamp
|
||||||
|
|
||||||
#### pdf ####
|
#### pdf ####
|
||||||
|
|
||||||
GTK_DOC_V_PDF=$(GTK_DOC_V_PDF_$(V))
|
GTK_DOC_V_PDF=$(GTK_DOC_V_PDF_@AM_V@)
|
||||||
GTK_DOC_V_PDF_=$(GTK_DOC_V_PDF_$(AM_DEFAULT_VERBOSITY))
|
GTK_DOC_V_PDF_=$(GTK_DOC_V_PDF_@AM_DEFAULT_V@)
|
||||||
GTK_DOC_V_PDF_0=@echo " DOC Building PDF";
|
GTK_DOC_V_PDF_0=@echo " DOC Building PDF";
|
||||||
|
|
||||||
pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files)
|
pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files)
|
||||||
|
@@ -1,4 +1,29 @@
|
|||||||
dnl -*- mode: autoconf -*-
|
# -*- mode: autoconf -*-
|
||||||
|
#
|
||||||
|
# gtk-doc.m4 - configure macro to check for gtk-doc
|
||||||
|
# Copyright (C) 2003 James Henstridge
|
||||||
|
# 2007-2017 Stefan Sauer
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# As a special exception, the above copyright owner gives unlimited
|
||||||
|
# permission to copy, distribute and modify the configure scripts that
|
||||||
|
# are the output of Autoconf when processing the Macro. You need not
|
||||||
|
# follow the terms of the GNU General Public License when using or
|
||||||
|
# distributing such scripts, even though portions of the text of the
|
||||||
|
# Macro appear in them. The GNU General Public License (GPL) does govern
|
||||||
|
# all other use of the material that constitutes the Autoconf Macro.
|
||||||
|
|
||||||
# serial 2
|
# serial 2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user