[gtk-doc] Generate version.xml from configure

Even though this is not what autoconf recommends, it reduces doc
rebuilds when version doesn't change but configure changes.
This commit is contained in:
Behdad Esfahbod 2013-08-30 19:38:47 -04:00
parent ac1b723917
commit a2a28235e8
3 changed files with 5 additions and 8 deletions

View File

@ -398,6 +398,7 @@ test/api/Makefile
test/shaping/Makefile test/shaping/Makefile
docs/Makefile docs/Makefile
docs/reference/Makefile docs/reference/Makefile
docs/reference/version.xml
]) ])
AC_OUTPUT AC_OUTPUT

View File

@ -1,4 +1,4 @@
## Process this file with automake to produce Makefile.in # Process this file with automake to produce Makefile.in
# We require automake 1.6 at least. # We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6 AUTOMAKE_OPTIONS = 1.6
@ -70,12 +70,7 @@ HTML_IMAGES=
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE). # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml # e.g. content_files=running.sgml building.sgml changes-2.0.sgml
content_files= \ content_files= version.xml
version.xml \
$(NULL)
version.xml: $(top_srcdir)/configure.ac
$(AM_V_GEN) echo $(HB_VERSION_MAJOR).$(HB_VERSION_MINOR).$(HB_VERSION_MICRO) > $@
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files # These files must be listed here *and* in content_files
@ -98,7 +93,7 @@ include $(top_srcdir)/gtk-doc.make
# Other files to distribute # Other files to distribute
# e.g. EXTRA_DIST += version.xml.in # e.g. EXTRA_DIST += version.xml.in
EXTRA_DIST += EXTRA_DIST += version.xml.in
# Files not to distribute # Files not to distribute
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types

View File

@ -0,0 +1 @@
@HB_VERSION@