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>
# 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 \