Browse Source

Clean more files (#772)

Make clean more thorough - found more files by running git clean -nx

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 6 years ago
parent
commit
9ff7450fb5
4 changed files with 25 additions and 5 deletions
  1. 6 4
      clean.json
  2. 4 1
      sys/src/9/amd64/clean.json
  3. 8 0
      sys/src/cleanlibs.json
  4. 7 0
      sys/src/cmd/clean.json

+ 6 - 4
clean.json

@@ -1,11 +1,13 @@
 {
-	"amd64cpu": {
+	"clean": {
 		"Pre": [
-			"rm -f -rf $ARCH/lib/*.a $ARCH/bin/*",
-			"git checkout $ARCH/bin"
+			"rm -rf $ARCH/lib/*.a $ARCH/bin/*",
+			"rm -f cfg/pxe/tftpboot/harvey.32bit"
 		],
 		"Projects": [
-			"/sys/src/9/amd64/clean.json"
+			"/sys/src/9/$ARCH/clean.json",
+			"/sys/src/cleanlibs.json",
+			"/sys/src/cmd/clean.json"
 		]
 	}
 }

+ 4 - 1
sys/src/9/amd64/clean.json

@@ -1,7 +1,10 @@
 {
 	"clean": {
 		"Pre": [
-			"rm -f *.o *.root.c *.out errstr.h init.h init ../boot/libboot.a ../boot/*.o boot*.c cpu.c"
+			"rm -f *.o *.root.c *.out errstr.h init.h init cpu.c",
+			"rm -f ../boot/libboot.a ../boot/*.o ../boot/bootcpu.c ../boot/bootcpu.elf.out boot*.c",
+			"rm -f harvey harvey.32bit",
+			"rm -f systab.c"
 		]
 	}
 }

+ 8 - 0
sys/src/cleanlibs.json

@@ -0,0 +1,8 @@
+{
+	"clean": {
+		"Pre": [
+			"rm -f libc/9syscall/*.s libc/9syscall/sys.h",
+			"rm -f libacpi/*.o"
+		]
+	}
+}

+ 7 - 0
sys/src/cmd/clean.json

@@ -0,0 +1,7 @@
+{
+	"clean": {
+		"Pre": [
+			"rm -f auth/lib/libauthcmd.a ip/httpd/libhttps.a usb/usbd/devtab.c venti/srv/libvs.a"
+		]
+	}
+}