Fix: preserve example files' timestamps when copying
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Oct 2014 13:45:19 +0000 (09:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Oct 2014 13:46:36 +0000 (15:46 +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: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am

index fbabb8ec9df2d403dc37264cd1d466deea59ed8f..6f0a31aa37d777498aa516d17ba836d35b4950b6 100644 (file)
@@ -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 \
This page took 0.025087 seconds and 4 git commands to generate.