gotools patch committed: Remove test directories in mostlyclean

Ian Lance Taylor iant@golang.org
Wed Feb 13 00:10:00 GMT 2019


This patch fixes the gotools Makefile to remove some more test
directories when running `make mostlyclean`.  It also cleans up the
chmod to avoid an error message when the directory does not exist.
This fixes PR 89193.  Ran gotools tests, ran various make clean
targets on x86_64-pc-linux-gnu.  Committed to mainline.

Ian

2019-02-12  Ian Lance Taylor  <iant@golang.org>

PR go/89193
* Makefile.am (mostlyclean-local): Avoid getting an error from
chmod.  Remove check-vet-dir and gocache-test.
* Makefile.in: Regenerate.
-------------- next part --------------
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 268829)
+++ Makefile.am	(working copy)
@@ -100,8 +100,9 @@ MOSTLYCLEANFILES = \
 	*.sent
 
 mostlyclean-local:
-	-chmod -R u+w check-go-dir
-	rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir
+	if test -d check-go-dir; then chmod -R u+w check-go-dir; fi
+	rm -rf check-go-dir check-runtime-dir cgo-test-dir carchive-test-dir \
+	check-vet-dir gocache-test
 
 if NATIVE
 


More information about the Gcc-patches mailing list