aboutsummaryrefslogtreecommitdiff
path: root/gotools/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-05-27 19:21:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-05-27 19:21:22 +0000
commit5c7247b7b7ad2ad27bec55bb39c3064fe32452f0 (patch)
treee95b749ab48d5e89394d8e62887296570d5e0aee /gotools/Makefile.in
parent7f63a854004e39660c926c7f6974638650e5fc18 (diff)
downloadgcc-5c7247b7b7ad2ad27bec55bb39c3064fe32452f0.zip
gcc-5c7247b7b7ad2ad27bec55bb39c3064fe32452f0.tar.gz
gcc-5c7247b7b7ad2ad27bec55bb39c3064fe32452f0.tar.bz2
Makefile.am (check-go-tool): Only chmod check-go-dir if it exists.
* Makefile.am (check-go-tool): Only chmod check-go-dir if it exists. * Makefile.in: Regenerate. From-SVN: r271669
Diffstat (limited to 'gotools/Makefile.in')
-rw-r--r--gotools/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gotools/Makefile.in b/gotools/Makefile.in
index 0e4ee83..1c2237c 100644
--- a/gotools/Makefile.in
+++ b/gotools/Makefile.in
@@ -878,7 +878,7 @@ mostlyclean-local:
# check-go-tool runs `go test cmd/go` in our environment.
@NATIVE_TRUE@check-go-tool: go$(EXEEXT) $(noinst_PROGRAMS) check-head check-gccgo check-gcc
-@NATIVE_TRUE@ -chmod -R u+w check-go-dir
+@NATIVE_TRUE@ if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
@NATIVE_TRUE@ rm -rf check-go-dir cmd_go-testlog
@NATIVE_TRUE@ $(MKDIR_P) check-go-dir/src/cmd/go
@NATIVE_TRUE@ cp $(cmdsrcdir)/go/*.go check-go-dir/src/cmd/go/