YFLAGS=-d
NOTSYS=sml|dup|.+\..+
-BUGGERED=unix
-OUTOFDATE=old
-NOMK=$NOTSYS|$BUGGERED|$OUTOFDATE
+NOMK=$NOTSYS
cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
-DIRS=`{ls -l | sed '/^d/!d; s/.* //; /^('$NOMK')$/d'}
-APEDIRS=awk bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
+DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
+APEDIRS=bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
tex troff
none:VQ:
&:n: $O.&
mv $O.$stem $stem
-%.tab.h %.tab.c: %.y
+%.tab.h %.tab.c:D: %.y
$YACC $YFLAGS -s $stem $prereq
%.install:V: $BIN/%
%.safeinstall: $O.% $cpuobjtype._cp
test -e $BIN/$stem && mv $BIN/$stem $BIN/_$stem
- $cpuobjtype._cp $O.$stem $BIN/$stem
+ ./$cpuobjtype._cp $O.$stem $BIN/$stem
%.safeinstallall:
for(objtype in $CPUS)
mk $stem.clean
$BIN/%: $O.% $cpuobjtype._cp
- $cpuobjtype._cp $O.$stem $BIN/$stem
+ ./$cpuobjtype._cp $O.$stem $BIN/$stem
%.directories:V:
for(i in $DIRS) @{
directories:V: install.directories
cleanfiles:V:
- rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG [$OS].units.tab $TARG bc.c bc.tab.h units.tab.h units.c [$OS]._cp
+ rm -f [$OS].out *.[$OS] y.tab.? y.debug y.output [$OS].$TARG [$OS].units.tab $TARG bc.c bc.tab.h units.tab.h units.c mpc.c mpc.tab.h [$OS]._cp
%.clean:V:
rm -f [$OS].$stem $stem.[$OS]
mk $stem.install &
}
wait
- rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c
+ rm -f $stem.[$OS] y.tab.? $stem.tab.? y.debug y.output [$OS].$stem bc.c bc.tab.h units.c mpc.c
%.acid: %.$O $HFILES
$CC $CFLAGS -a $stem.c >$target
-(bc|units).c:R: \1.tab.c
+(bc|units|mpc|pc).c:R: \1.tab.c
mv $stem1.tab.c $stem1.c
$BIN/init: $O.init