diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 13:03:20 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 13:03:20 +0000 |
commit | f4d04e1323bf2c9b42fdf14a6008c1f8ec47f336 (patch) | |
tree | 0598f1c8fa34810348a3bea62345806b447e5f3a /gcc/config/t-darwin | |
parent | 8ed67048c2e35dd8e32c51512dcca2cb999bcd68 (diff) | |
download | gcc-f4d04e1323bf2c9b42fdf14a6008c1f8ec47f336.tar.gz |
* config/t-darwin (config/darwin.h.rebuild): Harden against parallel builds.
cp:
* Make-lang.in (objcp/plugin/parser.h): Harden against parallel builds.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/t-darwin')
-rw-r--r-- | gcc/config/t-darwin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/t-darwin b/gcc/config/t-darwin index 1caee4bed18..b8b872e73ea 100644 --- a/gcc/config/t-darwin +++ b/gcc/config/t-darwin @@ -23,11 +23,11 @@ build/slashify1: $(srcdir)/config/slashify.c $(srcdir)/config/darwin.h: config/darwin.h.rebuild config/darwin.h.rebuild: build/slashify1 + @$(mkinstalldirs) config @if [ ! -e $(srcdir)/config/darwin.h \ -o $(srcdir)/config/darwin.h -nt config/darwin.h ]; then \ - { test -d config || mkdir config; } && \ - cp -p $(srcdir)/config/darwin-sections.def \ - config/darwin-sections.def && \ + cp $(srcdir)/config/darwin-sections.def \ + config/darwin-sections.def && \ build/slashify1 < $(srcdir)/config/darwin.h >config/darwin.h; \ fi |