9front - general discussion about 9front
 help / color / mirror / Atom feed
From: mikan@waifu.club
To: 9front@9front.org
Subject: [9front] mklib, upas/common: clean up libcommon properly
Date: Tue, 2 Feb 2021 23:14:59 +0300	[thread overview]
Message-ID: <20210202201459.GA79537@serv.nsmprlab> (raw)

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:
Remove CLEANFILES from cmd/upas/common/mkfile
Add *.a[$OS] to clean rule in cmd/mklib

diff -r 40a5f1266803 sys/src/cmd/mklib
--- a/sys/src/cmd/mklib	Tue Feb 02 07:21:47 2021 -0800
+++ b/sys/src/cmd/mklib	Tue Feb 02 20:05:11 2021 +0000
@@ -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
diff -r 40a5f1266803 sys/src/cmd/upas/common/mkfile
--- a/sys/src/cmd/upas/common/mkfile	Tue Feb 02 07:21:47 2021 -0800
+++ b/sys/src/cmd/upas/common/mkfile	Tue Feb 02 20:05:11 2021 +0000
@@ -15,6 +15,4 @@
 	common.h\
 	sys.h\
 
-CLEANFILES=libcommon.a[$OS]
-
 </sys/src/cmd/mklib


             reply	other threads:[~2021-02-02 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 20:14 mikan [this message]
2021-02-03 14:49 ` Amavect

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210202201459.GA79537@serv.nsmprlab \
    --to=mikan@waifu.club \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).