ref: 1cf04fdaabf1dbfb7fb4ce59a8cd41a2336d8f18
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 } } }