awk: dont require sed to build awk
This commit is contained in:
parent
42a7fcabb0
commit
49cbee690f
1 changed files with 8 additions and 11 deletions
|
@ -1,7 +1,5 @@
|
||||||
</$objtype/mkfile
|
</$objtype/mkfile
|
||||||
|
|
||||||
cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
|
|
||||||
|
|
||||||
TARG=awk
|
TARG=awk
|
||||||
OFILES=re.$O\
|
OFILES=re.$O\
|
||||||
lex.$O\
|
lex.$O\
|
||||||
|
@ -36,17 +34,16 @@ y.tab.h awkgram.c: $YFILES
|
||||||
$YACC -o awkgram.c $YFLAGS $prereq
|
$YACC -o awkgram.c $YFLAGS $prereq
|
||||||
|
|
||||||
clean:V:
|
clean:V:
|
||||||
rm -f *.[$OS] [$OS].out [$OS].maketab y.tab.? y.debug y.output $TARG
|
rm -f *.[$OS] [$OS].out *.maketab y.tab.? y.debug y.output $TARG
|
||||||
|
|
||||||
nuke:V:
|
nuke:V:
|
||||||
rm -f *.[$OS] [$OS].out [$OS].maketab y.tab.? y.debug y.output awkgram.c proctab.c $TARG
|
rm -f *.[$OS] [$OS].out *.maketab y.tab.? y.debug y.output awkgram.c proctab.c $TARG
|
||||||
|
|
||||||
proctab.c: $cpuobjtype.maketab
|
proctab.c: $cputype.maketab
|
||||||
./$cpuobjtype.maketab >proctab.c
|
./$cputype.maketab >proctab.c
|
||||||
|
|
||||||
$cpuobjtype.maketab: y.tab.h maketab.c
|
$cputype.maketab: y.tab.h maketab.c
|
||||||
objtype=$cputype
|
objtype=$cputype mk maketab.$cputype
|
||||||
mk maketab.$cputype
|
|
||||||
|
|
||||||
maketab.$cputype:V: y.tab.h maketab.$O
|
maketab.$objtype:V: y.tab.h maketab.$O
|
||||||
$LD -o $O.maketab maketab.$O
|
$LD -o $objtype.maketab maketab.$O
|
||||||
|
|
Loading…
Reference in a new issue