ref: 78c17415a54f4b8a269fde680dc0cd513ea07690
parent: e57825387ee86f89ccad90422a8c1826e939b432
author: qwx <qwx@sciops.net>
date: Mon Mar 4 16:36:58 EST 2024
mkall: add build without install or clean for libraries
--- a/bin/mkall
+++ b/bin/mkall
@@ -1,16 +1,33 @@
#!/bin/rc -e
clean=1
-if(~ $1 -n){
- clean=()
- shift
+install=1
+while(~ $1 -?){
+ switch($1){
+ case -u
+ clean=()
+ shift
+ case -n
+ install=()
+ clean=()
+ shift
+ case *
+ usage
+ }
}
for(i in amd64 386 arm){
objtype=$i {
- if(! ~ $#* 0)
- mk $*^.install
+ if(! ~ $#* 0){
+ if(! ~ $#install 0)
+ mk $*^.install
+ if not
+ mk $*
+ }
if not{
mk nuke
- mk install
+ if(! ~ $#install 0)
+ mk install
+ if not
+ mk
}
if(! ~ $#clean 0){
if(! ~ $#* 0)