shithub: riscv

Download patch

ref: 5cdabc5eb16db432abcf61dc126bfb7f9b2978c1
parent: bd8b6c2f9900d90c2b0ba59f7bb139252bffd231
author: cinap_lenrek <[email protected]>
date: Thu Jun 9 19:03:30 EDT 2016

?c: track ../cc/cc.h dependency and rebuild cc.a$O as neccesary

--- a/sys/src/cmd/1c/mkfile
+++ b/sys/src/cmd/1c/mkfile
@@ -22,10 +22,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/2c/mkfile
+++ b/sys/src/cmd/2c/mkfile
@@ -22,10 +22,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/5c/mkfile
+++ b/sys/src/cmd/5c/mkfile
@@ -24,10 +24,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/6c/mkfile
+++ b/sys/src/cmd/6c/mkfile
@@ -26,10 +26,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/8c/mkfile
+++ b/sys/src/cmd/8c/mkfile
@@ -27,10 +27,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 
 %.$O: ../cc/%.c
--- a/sys/src/cmd/kc/mkfile
+++ b/sys/src/cmd/kc/mkfile
@@ -24,10 +24,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/qc/mkfile
+++ b/sys/src/cmd/qc/mkfile
@@ -25,10 +25,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c
--- a/sys/src/cmd/vc/mkfile
+++ b/sys/src/cmd/vc/mkfile
@@ -24,10 +24,9 @@
 BIN=/$objtype/bin
 </sys/src/cmd/mkone
 
-$LIB:
+$LIB:	../cc/cc.h
 	cd ../cc
 	mk install
-	mk clean
 
 %.$O: ../cc/%.c
 	$CC $CFLAGS ../cc/$stem.c