shithub: purgatorio

ref: 51bf59e016b43f16ec91943829af30d99a886cc1
dir: /appl/cmd/mk/mksubdirs/

View raw version
all:V:	all-$SHELLTYPE
install:V: install-$SHELLTYPE
uninstall:V: uninstall-$SHELLTYPE
nuke:V: nuke-$SHELLTYPE
clean:V: clean-$SHELLTYPE

%-rc %-nt %-sh:QV:
	load std
	for j in $DIRS {
		if { ftest -d $j } {
			echo 'cd' $j '; mk' $MKFLAGS $stem
			cd $j; mk $MKFLAGS $stem; cd ..
		} {
			! ftest -e $j || raise $j^' not a directory'
		}
	}