shithub: purgatorio

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