From: Mathieu Desnoyers Date: Thu, 16 Oct 2014 13:50:58 +0000 (+0200) Subject: Fix: preserve example files' timestamps when copying X-Git-Tag: v0.9.0~79 X-Git-Url: http://git.liburcu.org/?p=userspace-rcu.git;a=commitdiff_plain;h=ad1a3fa0413d63d5f1f3113c2dc073be2b67d3d6;hp=718eb63eed91f0a06afd1a129813275ecc3e21eb 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: Mathieu Desnoyers --- diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 028da67..d8a76fe 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -122,10 +122,10 @@ SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ # Copies are for VPATH build support. all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ - cp -fR $(srcdir)/dist-files $(builddir); \ - cp -f $(srcdir)/Makefile.examples.template $(builddir); \ + cp -pfR $(srcdir)/dist-files $(builddir); \ + cp -pf $(srcdir)/Makefile.examples.template $(builddir); \ for subdir in $(SUBDIRS_PROXY); 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 \