code: 9ferno

ref: 6d69f6fba35087686f79adb2ea0d67944a62ca7b
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'
		}
	}