aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mkfile
blob: d08461e90c24753cd296545260dc03f5b43febbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<$PLAN9/src/mkhdr

TARG=`ls *.[cy] | sed 's/\.[cy]//'`
SHORTLIB=sec fs mux regexp9 thread bio 9

<$PLAN9/src/mkmany

BUGGERED='CVS|faces|factotum|mailfs|scat|upas|vac|venti|lex|vncv|grap|eqn|troff|pic|tbl'
DIRS=`ls -l |sed -n 's/^d.* //p' |egrep -v "^($BUGGERED)$"`

<$PLAN9/src/mkdirs

dir-all dir-install: $PLAN9/bin/9yacc

%.tab.h %.tab.c: %.y
	$YACC $YFLAGS -s $stem $prereq

%.o: %.tab.c
	9c -o $target $stem.tab.c

CLEANFILES=$CLEANFILES bc.tab.[ch] units.tab.[ch]