[gspell] build: use GSPELL_API_VERSION for the remaining files in docs/



commit 5de91169eb9f4176301b31a4d34298df740b3045
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 13 10:11:50 2016 +0100

    build: use GSPELL_API_VERSION for the remaining files in docs/

 configure.ac                                       |    4 +++-
 docs/reference/Makefile.am                         |    8 ++++++++
 .../{gspell-docs.xml => gspell-docs.xml.in}        |    2 +-
 ...ell-1.0-sections.txt => gspell-sections.txt.in} |    0
 4 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5d9db07..a29ce2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,9 +202,11 @@ fi
 
 # Output files
 AC_CONFIG_FILES([
-       gspell-$GSPELL_API_VERSION.pc:gspell.pc.in
+       gspell-${GSPELL_API_VERSION}.pc:gspell.pc.in
        Makefile
        docs/Makefile
+       docs/reference/gspell-docs.xml
+       docs/reference/gspell-${GSPELL_API_VERSION}.0-sections.txt:docs/reference/gspell-sections.txt.in
        docs/reference/Makefile
        gspell/Makefile
        gspell/resources/Makefile
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 4953a3c..ed2b4f9 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -1,6 +1,14 @@
 ## Process this file with automake to produce Makefile.in
 AUTOMAKE_OPTIONS = 1.6
 
+EXTRA_DIST =                   \
+       gspell-docs.xml.in      \
+       gspell-sections.txt.in
+
+DISTCLEANFILES =                                       \
+       gspell-docs.xml                                 \
+       gspell- GSPELL_API_VERSION@.0-sections.txt
+
 # The name of the module.
 # For library-web, it's simpler if the DOC_MODULE follows the scheme:
 # $name-$major.$minor
diff --git a/docs/reference/gspell-docs.xml b/docs/reference/gspell-docs.xml.in
similarity index 96%
rename from docs/reference/gspell-docs.xml
rename to docs/reference/gspell-docs.xml.in
index 925fe93..6438ce0 100644
--- a/docs/reference/gspell-docs.xml
+++ b/docs/reference/gspell-docs.xml.in
@@ -8,7 +8,7 @@
 ]>
 <book id="index">
   <bookinfo>
-    <title>gspell 1 Reference Manual</title>
+    <title>gspell @GSPELL_API_VERSION@ Reference Manual</title>
     <releaseinfo>for gspell &package_version;</releaseinfo>
   </bookinfo>
 
diff --git a/docs/reference/gspell-1.0-sections.txt b/docs/reference/gspell-sections.txt.in
similarity index 100%
rename from docs/reference/gspell-1.0-sections.txt
rename to docs/reference/gspell-sections.txt.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]