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.8.5~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a17315a7d3cd86bcf63a6890556f02b5afab105;p=urcu.git 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 \