[gtk-doc] make: create subdirectories of the content_files to the builddir
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] make: create subdirectories of the content_files to the builddir
- Date: Sun, 8 Dec 2013 20:11:04 +0000 (UTC)
commit 258ab7668fac9499a5869c190bb24a2bc38b5d06
Author: Alban Browaeys <prahal yahoo com>
Date: Sun Dec 8 14:32:05 2013 +0100
make: create subdirectories of the content_files to the builddir
Fixup for "make: copy the files with their relative path included" also
by me.
That is it is fine to keep the subdir from the source to the build
directory, only it could not already have been generated. Do so.
Required by a followup patch for PackageKit which has SETUP_FILES
in a the "spec" directory. As nothing is generated there, it needs
action to create it in the build tree.
https://bugzilla.gnome.org/show_bug.cgi?id=720061
gtk-doc.make | 2 ++
gtk-doc.notmpl.make | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk-doc.make b/gtk-doc.make
index 14d95e8..e449fcd 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -88,6 +88,8 @@ setup-build.stamp:
files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
if test "x$$files" != "x" ; then \
for file in $$files ; do \
+ destdir=`dirname $(abs_builddir)/$$file` ;\
+ test -d "$$destdir" || mkdir -p "$$destdir"; \
test -f $(abs_srcdir)/$$file && \
cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
done; \
diff --git a/gtk-doc.notmpl.make b/gtk-doc.notmpl.make
index bd0ff00..6263baa 100644
--- a/gtk-doc.notmpl.make
+++ b/gtk-doc.notmpl.make
@@ -88,6 +88,8 @@ setup-build.stamp:
files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
if test "x$$files" != "x" ; then \
for file in $$files ; do \
+ destdir=`dirname $(abs_builddir)/$$file`; \
+ test -d "$$destdir" || mkdir -p "$$destdir"; \
test -f $(abs_srcdir)/$$file && \
cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
done; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]