8515f4ecb7
dont just mv y.tab.c, this can cause y.tab.c and y.tab.h to be accidently regenerated breaking parallel build.
47 lines
555 B
Makefile
47 lines
555 B
Makefile
< /$objtype/mkfile
|
|
|
|
TARG=eqn
|
|
OFILES=main.$O\
|
|
tuning.$O\
|
|
diacrit.$O\
|
|
eqnbox.$O\
|
|
font.$O\
|
|
fromto.$O\
|
|
funny.$O\
|
|
glob.$O\
|
|
integral.$O\
|
|
input.$O\
|
|
lex.$O\
|
|
lookup.$O\
|
|
mark.$O\
|
|
matrix.$O\
|
|
move.$O\
|
|
over.$O\
|
|
paren.$O\
|
|
pile.$O\
|
|
shift.$O\
|
|
size.$O\
|
|
sqrt.$O\
|
|
text.$O\
|
|
eqn.$O\
|
|
|
|
YFILES=eqn.y\
|
|
|
|
HFILES=e.h\
|
|
y.tab.h\
|
|
|
|
CLEANFILES=prevy.tab.h\
|
|
|
|
BIN=/$objtype/bin
|
|
</sys/src/cmd/mkone
|
|
CC=pcc
|
|
LD=pcc
|
|
YFLAGS=-d -S
|
|
CFLAGS=-c
|
|
|
|
eqn.c: y.tab.c prevy.tab.h
|
|
cp y.tab.c $target
|
|
|
|
prevy.tab.h: y.tab.h
|
|
rc -c 'cmp -s y.tab.h prevy.tab.h || cp y.tab.h prevy.tab.h'
|