[gtk-doc] make: fix distcheck for tmpl based projects



commit bea7a41be032678d8d414d72622b98e6a82dff25
Author: Stefan Kost <ensonic users sf net>
Date:   Thu Aug 25 23:20:44 2011 +0200

    make: fix distcheck for tmpl based projects
    
    Make the tmpl dir we copied in setup writable (as during distcheck the source
    is readonly).

 gtk-doc.make       |    3 ++-
 tests/gtk-doc.make |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk-doc.make b/gtk-doc.make
index cac7c4f..1f75dfd 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -85,7 +85,8 @@ setup-build.stamp:
 	        done; \
 	    fi; \
 	    test -d $(abs_srcdir)/tmpl && \
-	        cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \
+	        { cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \
+	        chmod -R u+w $(abs_builddir)/tmpl; } \
 	fi
 	@touch setup-build.stamp
 
diff --git a/tests/gtk-doc.make b/tests/gtk-doc.make
index 4dcfcd9..02afbb1 100644
--- a/tests/gtk-doc.make
+++ b/tests/gtk-doc.make
@@ -76,7 +76,8 @@ setup-build.stamp:
 	        done; \
 	    fi; \
 	    test -d $(abs_srcdir)/tmpl && \
-	        cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \
+	       { cp $(abs_builddir)/$$file $(abs_builddir)/html; \
+	       chmod -R u+w $(abs_builddir)/tmpl; } \
 	fi
 	@touch setup-build.stamp
 



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