Fix: preserve example files' timestamps when copying
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Oct 2014 13:50:58 +0000 (15:50 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Oct 2014 13:50:58 +0000 (15:50 +0200)
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 <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am

index 028da67b7b4370f304b0c62472db6b8d616a70bf..d8a76fed6f70d515bdc4122f0baea553c8c619c4 100644 (file)
@@ -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 \
This page took 0.034091 seconds and 4 git commands to generate.