code: 9ferno

ref: 600bbfe4aaa9ad0f73d8d73eef1b7670e5f7d3a3
dir: /mkfiles/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:QV:
	for (j in $DIRS)
	{
		{
			test -d $j && {
				echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
				@{builtin cd $j; mk $MKFLAGS $stem}
			}
		} || test ! -e $j
	}

%-sh:QV:
	for j in $DIRS
	do
		if test -d $j; then
			echo "(cd $j; mk $MKFLAGS $stem)"
			(cd $j; mk $MKFLAGS $stem) || exit 1
		fi || test ! -e $j
	done