ref: 571fac12b9af7d6ea8f0f8f5a25d5d7e6635a36a
dir: /bin/mkall/
#!/bin/rc -e clean=1 if(~ $1 -n){ clean=() shift } for(i in amd64 386 arm){ objtype=$i { if(! ~ $#* 0) mk $*^.install if not{ mk nuke mk install } if(! ~ $#clean 0){ if(! ~ $#* 0) mk cleancmds >[2]/dev/null || mk $*^.clean if not mk clean } } }