code: 9ferno

ref: 6bb619c8db2867ddd9cd19c0aec05065f5ee0cae
dir: /mkfiles/mklibsubdirs/

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 'SYSTARG='$SYSTARG 'OBJTYPE='$OBJTYPE $stem'}'
				@{builtin cd $j; mk $MKFLAGS 'SYSTARG='$SYSTARG 'OBJTYPE='$OBJTYPE $stem}
			}
		} || test ! -e $j
	}

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