[gtk-doc] make: When doing 'make install', look for generated docs in builddir.



commit 770dc1a60a42edaccbc42d930eb0e426908d183f
Author: MichaÅ GÃrny <mgorny gentoo org>
Date:   Tue Aug 16 16:41:58 2011 +0200

    make: When doing 'make install', look for generated docs in builddir.
    
    This fixes installing docs when build is done in a directory other than
    $(srcdir), bug #656658.

 gtk-doc.make        |    4 ++--
 gtk-doc.notmpl.make |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk-doc.make b/gtk-doc.make
index 76eab95..497b991 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -225,8 +225,8 @@ maintainer-clean-local: clean
 	@rm -rf xml html
 
 install-data-local:
-	@installfiles=`echo $(srcdir)/html/*`; \
-	if test "$$installfiles" = '$(srcdir)/html/*'; \
+	@installfiles=`echo $(builddir)/html/*`; \
+	if test "$$installfiles" = '$(builddir)/html/*'; \
 	then echo 1>&2 'Nothing to install' ; \
 	else \
 	  if test -n "$(DOC_MODULE_VERSION)"; then \
diff --git a/gtk-doc.notmpl.make b/gtk-doc.notmpl.make
index 0c3a269..9841de4 100644
--- a/gtk-doc.notmpl.make
+++ b/gtk-doc.notmpl.make
@@ -204,8 +204,8 @@ maintainer-clean-local: clean
 	@rm -rf xml html
 
 install-data-local:
-	@installfiles=`echo $(srcdir)/html/*`; \
-	if test "$$installfiles" = '$(srcdir)/html/*'; \
+	@installfiles=`echo $(builddir)/html/*`; \
+	if test "$$installfiles" = '$(builddir)/html/*'; \
 	then echo 1>&2 'Nothing to install' ; \
 	else \
 	  if test -n "$(DOC_MODULE_VERSION)"; then \



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