[gtk-doc] make: copy the files with their relative path included



commit f110afb38b7f3e58270bd6adc4f98783ff586aa4
Author: Alban Browaeys <prahal yahoo com>
Date:   Sat May 25 01:37:56 2013 +0200

    make: copy the files with their relative path included
    
    Copy the files from srcdir/(relative_path/filename) to
    builddir/(relative_path/filename) instead of to
    builddir/(filename).
    This fixes out of source builddir for polkit. (ie with $file
    equal to ../man/polkit.xml (polkit/docs/polkit/Makefile.am).
    Otherwise the file polkit.xml ends up in builddir/ instead of
    builddir/../man/.

 gtk-doc.make        |    2 +-
 gtk-doc.notmpl.make |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk-doc.make b/gtk-doc.make
index 3aac985..3b5bed0 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -84,7 +84,7 @@ setup-build.stamp:
            if test "x$$files" != "x" ; then \
                for file in $$files ; do \
                    test -f $(abs_srcdir)/$$file && \
-                       cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
+                       cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
                done; \
            fi; \
            test -d $(abs_srcdir)/tmpl && \
diff --git a/gtk-doc.notmpl.make b/gtk-doc.notmpl.make
index d87f66d..104c399 100644
--- a/gtk-doc.notmpl.make
+++ b/gtk-doc.notmpl.make
@@ -84,7 +84,7 @@ setup-build.stamp:
            if test "x$$files" != "x" ; then \
                for file in $$files ; do \
                    test -f $(abs_srcdir)/$$file && \
-                       cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
+                       cp -pu $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
                done; \
            fi; \
        fi


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