Commit 76b68df1 authored by Ting-Wei Lan's avatar Ting-Wei Lan Committed by Tim-Philipp Müller

gtk-doc: Fallback to 'cp' when 'cp -u' fails

'cp -u' is not specified in POSIX and it can fail with illegal option
error on systems not supporting it. It is better to fallback to the
slower 'cp' than causing build failure.

https://bugzilla.gnome.org/show_bug.cgi?id=791784
parent 4c65322b
......@@ -121,7 +121,9 @@ scanobj-build.stamp: $(SCANOBJ_DEPS) $(basefiles)
@if test x"$(srcdir)" != x. ; then \
for f in $(SCANOBJ_FILES) $(SCAN_FILES); \
do \
if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \
if test -e $(srcdir)/$$f; then \
cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f . ; \
fi; \
done; \
fi; \
mkdir -p $(INSPECT_DIR); \
......@@ -155,7 +157,9 @@ scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp
@if test x"$(srcdir)" != x. ; then \
for f in $(SCANOBJ_FILES) $(SCAN_FILES); \
do \
if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \
if test -e $(srcdir)/$$f; then \
cp -u $(srcdir)/$$f . || cp $(srcdir)/$$f .; \
fi; \
done; \
fi
@_source_dir='' ; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment