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.4.3~9 X-Git-Url: https://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=f336dfb6fab57a78abf36ee83fa2818338aaa680 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 1e4ef99d..3114e2cc 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -52,7 +52,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 \