[lttng-dev] [PATCH lttng-ust] Fix: preserve example files' timestamps when copying

Jérémie Galarneau jeremie.galarneau at efficios.com
Thu Oct 16 09:45:19 EDT 2014


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 <jeremie.galarneau at efficios.com>
---
 doc/examples/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index fbabb8e..6f0a31a 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 \
-- 
2.1.2




More information about the lttng-dev mailing list