[gtkmm-documentation] Do not use broken doc-dist-hook rule (bgo #574530)
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Do not use broken doc-dist-hook rule (bgo #574530)
- Date: Wed, 16 Sep 2009 22:24:18 +0000 (UTC)
commit 39b2bdf7881aa459b153251ad84543d94cda5ca2
Author: Daniel Elstner <daniel kitta gmail com>
Date: Wed Sep 16 23:54:46 2009 +0200
Do not use broken doc-dist-hook rule (bgo #574530)
* docs/tutorial/Makefile.am (dist_noinst_DATA): List files formerly
distributed through EXTRA_DIST or the doc-dist-hook rule included
with gnome-doc-utils.make.
(dist_tutorial_figures_DATA): Add "dist_" prefix.
(dist-hook): Remove doc-dist-hook prerequisite.
* docs/tutorial/docbook_phpwebnotes.xsl: Delete unused file.
ChangeLog | 11 +++++++++
docs/tutorial/Makefile.am | 22 ++++++++++--------
docs/tutorial/docbook_phpwebnotes.xsl | 38 ---------------------------------
3 files changed, 23 insertions(+), 48 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0fa4bd2..9f69563 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2009-09-16 Daniel Elstner <daniel kitta gmail com>
+ Do not use broken doc-dist-hook rule (bgo #574530)
+
+ * docs/tutorial/Makefile.am (dist_noinst_DATA): List files formerly
+ distributed through EXTRA_DIST or the doc-dist-hook rule included
+ with gnome-doc-utils.make.
+ (dist_tutorial_figures_DATA): Add "dist_" prefix.
+ (dist-hook): Remove doc-dist-hook prerequisite.
+ * docs/tutorial/docbook_phpwebnotes.xsl: Delete unused file.
+
+2009-09-16 Daniel Elstner <daniel kitta gmail com>
+
Do not overwrite image files of gtkmm install
* Makefile.am (dist_images_DATA): Neither distribute nor install
diff --git a/docs/tutorial/Makefile.am b/docs/tutorial/Makefile.am
index 8d21fdb..3fc8f36 100644
--- a/docs/tutorial/Makefile.am
+++ b/docs/tutorial/Makefile.am
@@ -2,8 +2,6 @@
gtkmm_docdir = $(datadir)/doc/gtkmm-2.4
-DOCBOOK_PHPWEBNOTES_TRANSFORM = docbook_phpwebnotes.xsl
-
# Function: $(call vpath_listall,PATTERN ...)
# Get all filenames which match a PATTERN from the list. Look for files
# relative to either the current directory or $(srcdir). Strip $(srcdir)/
@@ -11,8 +9,6 @@ DOCBOOK_PHPWEBNOTES_TRANSFORM = docbook_phpwebnotes.xsl
vpath_srclist = $(patsubst $(srcdir)/%,%,$(wildcard $(addprefix $(srcdir)/,$(1))))
vpath_listall = $(sort $(wildcard $(1)) $(if $(srcdir:.=),$(vpath_srclist)))
-EXTRA_DIST = README insert_example_code.pl C/gtkmm-tutorial-in.xml C/gtkmm-tutorial.xml $(DOCBOOK_PHPWEBNOTES_TRANSFORM)
-
DOCBOOK_STYLESHEET ?= http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
XMLLINT = xmllint
XSLTPROC = xsltproc
@@ -120,9 +116,18 @@ tutorial_html_files = $(call vpath_listall,html/*.html) style.css
tutorial_html_inst = $(foreach\
file,$(tutorial_html_files),$(or $(wildcard $(file)),$(srcdir)/$(file)))
-dist_noinst_DATA = $(tutorial_html_files)
+tutorial_xml_files = $(addsuffix /gtkmm-tutorial.xml,C $(DOC_LINGUAS))
+tutorial_po_files = $(foreach lang,$(lang)/$(lang).po,$(DOC_LINGUAS))
+
+dist_noinst_DATA = \
+ insert_example_code.pl \
+ C/gtkmm-tutorial-in.xml \
+ $(tutorial_po_files) \
+ $(tutorial_xml_files) \
+ $(tutorial_html_files)
+
+dist_tutorial_figures_DATA = $(addprefix C/,$(DOC_FIGURES))
-tutorial_figures_DATA = $(addprefix C/,$(DOC_FIGURES))
dist_tutorial_icons_DATA = \
icons/caution.png \
icons/home.png \
@@ -136,8 +141,6 @@ dist_tutorial_icons_DATA = \
include $(top_srcdir)/build/gnome-doc-utils.make
-dist-hook: doc-dist-hook
-
all-local: $(addsuffix /gtkmm-tutorial.xml,C $(DOC_LINGUAS)) html/index.html
install-data-local: install-tutorial
@@ -153,7 +156,6 @@ uninstall-tutorial:
@$(NORMAL_UNINSTALL)
rm -f '$(DESTDIR)$(tutorial_htmldir)'/*.html
rm -f '$(DESTDIR)$(tutorial_htmldir)/style.css'
- -test ! -r '$(DESTDIR)$(tutorial_htmldir)' || rmdir '$(DESTDIR)$(tutorial_htmldir)'
# Create a html generation of the C locale's version of the DocBook,
# using our custom stylesheet and graphics:
@@ -164,7 +166,7 @@ html/index.html: $(srcdir)/C/gtkmm-tutorial.xml
# Make sure that the documentation will always have been generated before
# executing the commands of a rule that depends on files in html/.
-html/%: | html/index.html
+html/chapter-%.html html/sec-%.html: | html/index.html
# Create a DocBook source file that doesn't have the examples' comments blocks:
$(srcdir)/C/gtkmm-tutorial.xml: $(srcdir)/C/gtkmm-tutorial-in.xml $(srcdir)/insert_example_code.pl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]