Browse Source

Fix the clean rule

It now blows away $ARCH/bin without thinking hard (because, stupidly, amd64/bin includes
some rc scripts, i.e. not binaries -- wtf?) and all the .a's in lib. Then, to undo
any possible damage, it does a checkout of $ARCH/bin

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 3 years ago
parent
commit
07f3cd50bb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      clean.json

+ 2 - 1
clean.json

@@ -2,7 +2,8 @@
 	"amd64cpu": {
 		"Projects": ["/sys/src/9/amd64/clean.json"],
 	"Pre": [
-		"rm -f $ARCH/lib/*.a"
+		"rm -rf $ARCH/lib/*.a $ARCH/bin/*",
+		"git checkout $ARCH/bin"
 	]
 	}