From: Jérémie Galarneau Date: Thu, 16 Oct 2014 13:45:19 +0000 (-0400) Subject: Fix: preserve example files' timestamps when copying X-Git-Tag: v2.6.0-rc1~3 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=a41cceb9344d8a42597b57b95d9a6dfe622ff87b Fix: preserve example files' timestamps when copying This fixes an issue where examples were always being rebuilt when performing an out of tree build since the examples were being copied to the build directory with a timestamp more recent than the already-built example objects. Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index fbabb8ec..6f0a31aa 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -57,7 +57,7 @@ endif all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL); do \ - cp -fR $(srcdir)/$$subdir $(builddir); \ + cp -pfR $(srcdir)/$$subdir $(builddir); \ done; \ fi; \ if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \