summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Browaeys <prahal@yahoo.com>2013-05-25 01:37:56 +0200
committerStefan Sauer <ensonic@users.sf.net>2013-05-26 14:37:34 +0200
commitf110afb38b7f3e58270bd6adc4f98783ff586aa4 (patch)
treecb7c457d7671ff7fe237bdd90fa3490937605bb5
parentdf07f5f5183bea7feb096ed7cc56dbcd3ad205ba (diff)
downloadgtk-doc-f110afb38b7f3e58270bd6adc4f98783ff586aa4.tar.gz
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/.
-rw-r--r--gtk-doc.make2
-rw-r--r--gtk-doc.notmpl.make2
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