Fix srcdir copy race condition by explicitly doing a cmp between the srcfile and the target.

Fixing tinderbox bustage.
This commit is contained in:
seawood%netscape.com 2002-06-17 21:39:35 +00:00
parent 71c21a4e59
commit a1cd8f96db
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ done_gen: msgMapi.idl
touch $@
$(addprefix $(srcdir)/,$(CSRCS)): %.c: done_gen
cp $(@F) $@
@if cmp -s $(@F) $@; then cp $(@F) $@; fi
export:: done_gen $(addprefix $(srcdir)/,$(CSRCS))

View File

@ -69,7 +69,7 @@ done_gen: ISimpleDOMDocument.idl
touch $@
$(addprefix $(srcdir)/,$(CSRCS)): %.c: done_gen
cp $(@F) $@
@if cmp -s $(@F) $@; then cp $(@F) $@; fi
export:: done_gen $(addprefix $(srcdir)/,$(CSRCS))

View File

@ -69,7 +69,7 @@ done_gen: ISimpleDOMNode.idl
touch $@
$(addprefix $(srcdir)/,$(CSRCS)): %.c: done_gen
cp $(@F) $@
@if cmp -s $(@F) $@; then cp $(@F) $@; fi
export:: done_gen $(addprefix $(srcdir)/,$(CSRCS))