~amavect/mkfilechanges

fdb8c1e48d93901f5c8a56da90e0e4ac7f465fa2 — Amavect 1 year, 3 months ago 0b88e49 master
cmd/mkfile: simplify DIRS generation
1 files changed, 4 insertions(+), 5 deletions(-)

M src/cmd/mkfile
M src/cmd/mkfile => src/cmd/mkfile +4 -5
@@ 8,11 8,10 @@ BIN=/$objtype/bin
LDFLAGS=
YFLAGS=-d

NOMK=glenda
PCONLY=|vmx
POWERLESS=|dtracy  # until someone fixes the build for power
NOMK=$NOMK`{~ $objtype (386 amd64) || echo $PCONLY}`{~ $objtype power && echo $POWERLESS}
DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
PCONLY=vmx
POWERLESS=dtracy  # until someone fixes the build for power
NOMK=`{~ $objtype (386 amd64) || echo $PCONLY} `{~ $objtype power && echo $POWERLESS}
DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '-e^'^('' $NOMK)^'$'}

usage:VQ:
	echo 'usage: mk all, all.cpus, cmds, $O.$cmd'