From 2a17315a7d3cd86bcf63a6890556f02b5afab105 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 16 Oct 2014 15:50:58 +0200 Subject: [PATCH] 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 --- doc/examples/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 \ -- 2.34.1