shithub: plan9front

Download patch

ref: 101312c1d733ceff3c1bdcef225933d1de74e849
parent: 01ab07ef729a2dbade38906f4acf2827ea327952
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 3 11:10:11 EST 2021

mklib, upas/common: clean up libcommon properly (thanks mikan)

Despite pervious efforts, mk clean still doesn't remove libcommon.a*
files from cmd/upas/common/. To fix this, let's tell cmd/mklib to do
the job instead.

--- a/sys/src/cmd/mklib
+++ b/sys/src/cmd/mklib
@@ -39,7 +39,7 @@
 	rm -f *.[$OS] y.tab.? y.output y.error $CLEANFILES $LIB
 
 clean:V:
-	rm -f *.[$OS] y.tab.? y.output y.error $CLEANFILES
+	rm -f *.[$OS] *.a[$OS] y.tab.? y.output y.error $CLEANFILES
 
 %.acid:V:
 	$CC $CFLAGS -a `{basename $stem .$objtype}^.c >$target
--- a/sys/src/cmd/upas/common/mkfile
+++ b/sys/src/cmd/upas/common/mkfile
@@ -15,6 +15,4 @@
 	common.h\
 	sys.h\
 
-CLEANFILES=libcommon.a[$OS]
-
 </sys/src/cmd/mklib