shithub: riscv

Download patch

ref: 97de3f67c230a34d95778cc16a8c1003148f0b4b
parent: 33fb16c9fe7744aae8736bb4b48ba4e0f505eafc
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Nov 2 08:12:34 EST 2020

upas/common: delete library on 'mk clean'

libcommon.a$O doesn't end with a .a, so mk
doesn't know how to look inside it in order
to check if the files are up to date.

This means that when 'mk clean' is run,
libcommon.a$O looks up to date:

	% mk clean
	...
	% mk
	mk: 'default' is up to date

Deleting the library works around this problem.

--- a/sys/src/cmd/upas/common/mkfile
+++ b/sys/src/cmd/upas/common/mkfile
@@ -14,10 +14,7 @@
 HFILES=common.h\
 	sys.h\
 
-UPDATE=\
-	mkfile\
-	${OFILES:%.$O=%.c}\
-	$HFILES\
+CLEANFILES=$LIB
 
 </sys/src/cmd/mklib