[cairo-commit] doc/Makefile.am doc/public gtk-doc.make Makefile.am

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Jun 27 19:14:01 PDT 2006


 Makefile.am                        |    4 ++++
 doc/Makefile.am                    |    4 +++-
 doc/public/tmpl/cairo-types.sgml   |    4 +---
 doc/public/tmpl/cairo-version.sgml |    7 +++++++
 gtk-doc.make                       |    8 ++++++--
 5 files changed, 21 insertions(+), 6 deletions(-)

New commits:
diff-tree 92021d169fea48eed9349e5821353f976df56be1 (from 0d073c2e86ced3a94ef76e7e4c2a00f8fb76efb1)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Jun 28 04:14:07 2006 +0200

    Make docs not build by "make all", but by "make doc", "make dist", and "make
    install".

diff --git a/Makefile.am b/Makefile.am
index cae2e7a..62f01c2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,10 @@
 DIST_SUBDIRS = pixman src test doc
 SUBDIRS = pixman src doc
 
+.PHONY: doc
+doc:
+	-$(MAKE) -C doc doc
+
 # libpng is required for our test programs
 if CAIRO_HAS_PNG_FUNCTIONS
 SUBDIRS += test
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 411ad5c..74d8298 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,2 +1,4 @@
 SUBDIRS=public
-
+.PHONY: doc
+doc:
+	-$(MAKE) -C public doc
diff --git a/doc/public/tmpl/cairo-types.sgml b/doc/public/tmpl/cairo-types.sgml
index 9e6f6b5..c0c14fa 100644
--- a/doc/public/tmpl/cairo-types.sgml
+++ b/doc/public/tmpl/cairo-types.sgml
@@ -17,13 +17,11 @@ Generic data types used in the cairo API
 <!-- ##### SECTION Stability_Level ##### -->
 
 
-<!-- ##### FUNCTION cairo_bool_t ##### -->
+<!-- ##### TYPEDEF cairo_bool_t ##### -->
 <para>
 
 </para>
 
- at Returns: 
-
 
 <!-- ##### STRUCT cairo_user_data_key_t ##### -->
 <para>
diff --git a/doc/public/tmpl/cairo-version.sgml b/doc/public/tmpl/cairo-version.sgml
index 42eb58e..3c3404e 100644
--- a/doc/public/tmpl/cairo-version.sgml
+++ b/doc/public/tmpl/cairo-version.sgml
@@ -124,6 +124,13 @@ if (cairo_version() >= %CAIRO_VERSION_EN
 
 
 
+<!-- ##### MACRO CAIRO_VERSION_STRING ##### -->
+<para>
+
+</para>
+
+
+
 <!-- ##### MACRO CAIRO_VERSION_ENCODE ##### -->
 <para>
 
diff --git a/gtk-doc.make b/gtk-doc.make
index d50629a..a1fbac6 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -41,7 +41,7 @@ SCANOBJ_FILES = 		 \
 CLEANFILES = $(SCANOBJ_FILES) $(DOC_MODULE)-unused.txt $(DOC_STAMPS)
 
 if ENABLE_GTK_DOC
-all-local: html-build.stamp
+doc: html-build.stamp
 
 #### scan ####
 
@@ -88,6 +88,8 @@ sgml.stamp: sgml-build.stamp
 
 #### html ####
 
+dist-hook install-data-local: html-build.stamp
+
 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
 	@echo 'gtk-doc: Building HTML'
 	@-chmod -R u+w $(srcdir)
@@ -99,7 +101,9 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_
 	cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
 	touch html-build.stamp
 else
-all-local:
+doc:
+	@echo "*** gtk-doc must be installed and enabled in order to make doc"
+	@false
 endif
 
 ##############


More information about the cairo-commit mailing list