[gtkmm-documentation] Work around gnome-doc-utils.make VPATH problems



commit bcb4f3e28290b6d6ee7f1bf899b262941bbff2e1
Author: Daniel Elstner <danielk openismus com>
Date:   Tue Aug 25 11:23:31 2009 +0200

    Work around gnome-doc-utils.make VPATH problems
    
    * docs/tutorial/Makefile.am (C/gtkmm-tut-with-examples.xml): Always
    put this generated file into the source tree, because the rules in
    gnome-doc-utils.make do not perform a correct VPATH search for the
    xml2po input file.
    (C/programming-with-gtkmm-pdf.xml): Run $(MKDIR_P) C to create the
    output directory if necessary.

 ChangeLog                 |   11 +++++++++++
 docs/tutorial/Makefile.am |   11 ++++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a743155..8bc1c98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-08-25  Daniel Elstner  <danielk openismus com>
+
+	Work around gnome-doc-utils.make VPATH problems
+
+	* docs/tutorial/Makefile.am (C/gtkmm-tut-with-examples.xml): Always
+	put this generated file into the source tree, because the rules in
+	gnome-doc-utils.make do not perform a correct VPATH search for the
+	xml2po input file.
+	(C/programming-with-gtkmm-pdf.xml): Run $(MKDIR_P) C to create the
+	output directory if necessary.
+
 2009-08-25  Murray Cumming  <murrayc murrayc com>
 
 	Update for Gtk::Builder.
diff --git a/docs/tutorial/Makefile.am b/docs/tutorial/Makefile.am
index f251bbd..3ba8bfa 100644
--- a/docs/tutorial/Makefile.am
+++ b/docs/tutorial/Makefile.am
@@ -154,7 +154,7 @@ uninstall-tutorial:
 # Set the use.id.as.filename param so that we don't use the chapter / section
 # number as the filename, otherwise the url will change every time anything is
 # re-ordered or inserted in the documentation
-html/index.html: C/gtkmm-tut-with-examples.xml
+html/index.html: $(srcdir)/C/gtkmm-tut-with-examples.xml
 	rm -fr html
 	$(MKDIR_P) html
 	$(XSLTPROC) $(xslt_params) -o html/ --xinclude --catalogs '$(DOCBOOK_STYLESHEET)' $<
@@ -164,13 +164,13 @@ html/index.html: C/gtkmm-tut-with-examples.xml
 html/%: | html/index.html
 
 # Create a DocBook source file that doesn't have the examples' comments blocks:
-C/gtkmm-tut-with-examples.xml: C/gtkmm-tut.xml $(srcdir)/insert_example_code.pl
+$(srcdir)/C/gtkmm-tut-with-examples.xml: $(srcdir)/C/gtkmm-tut.xml $(srcdir)/insert_example_code.pl
 	$(PERL) -- $(srcdir)/insert_example_code.pl $(top_srcdir)/examples/book $< >$@
 
-validate_original: C/gtkmm-tut.xml
+validate_original: $(srcdir)/C/gtkmm-tut.xml
 	$(XMLLINT) --xinclude --postvalid --noout $<
 
-validate: C/gtkmm-tut-with-examples.xml
+validate: $(srcdir)/C/gtkmm-tut-with-examples.xml
 	$(XMLLINT) --xinclude --postvalid --noout $<
 
 #gtkmm-tut-html.tar.gz: html/index.html
@@ -185,7 +185,8 @@ validate: C/gtkmm-tut-with-examples.xml
 
 # we need to produce a full examples with all of the XIncludes done so that it
 # can processed for PDF
-C/programming-with-gtkmm-pdf.xml: C/gtkmm-tut-with-examples.xml
+C/programming-with-gtkmm-pdf.xml: $(srcdir)/C/gtkmm-tut-with-examples.xml
+	$(MKDIR_P) C
 	$(XMLLINT) --xinclude --postvalid $< -o $@
 
 # We have to generate the pdf in a subdirectory (e.g. pdf/) because the tutorial



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