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

[libvirt] [PATCH] build: improve 'make install' for VPATH builds



Anything distributed in the tarball should be built into srcdir.

* docs/Makefile.am (%.html): Build into srcdir.
---

This gets a VPATH build further, but things still aren't complete for
doing 'make install' from a brand-new clone (or from autobuild.sh).  I
don't know how to make xsltproc output the files
{html,devhelp}/libvirt-{libvirt,virterror}.html into $(srcdir).

To be applied on top of Jirka's patches, which means after 0.8.8.

 docs/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/Makefile.am b/docs/Makefile.am
index b525fdc..adf74ee 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -138,8 +138,8 @@ internals/%.html.tmp: internals/%.html.in subsite.xsl page.xsl sitemap.html.in
 	    "-//W3C//DTD XHTML 1.0 Strict//EN" > /dev/null ; then \
 	  echo "Validating $@" ; \
 	  SGML_CATALOG_FILES='$(XML_CATALOG_FILE)' \
-	  $(XMLLINT) --catalogs --nonet --format --valid $< > $@ \
-	  || { rm $@ && exit 1; }; \
+	  $(XMLLINT) --catalogs --nonet --format --valid $< > $(srcdir)/$@ \
+	  || { rm $(srcdir)/$@ && exit 1; }; \
 	  else echo "missing XHTML1 DTD" ; fi ; fi


-- 
1.7.4


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