aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/bayes/mkfile
blob: 1479995b1476c926faee580529e9ab5fe2c1bb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<$PLAN9/src/mkhdr

TARG=addhash bayes msgtok
HFILES=
OFILES=
LIB=

BIN=$BIN/upas
<$PLAN9/src/mkmany

# msg tokenizer
$O.regen: regcomp.$O dfa.$O
dfa.$O regcomp.$O regen.$O: dfa.h

$PLAN9/mail/lib/classify.re: $O.regen
	if(~ $cputype $objtype)
		$O.regen >x && cp x $target

$O.msgtok: dfa.$O

# msg database 
msgdbx.$O msgdb.$O: msgdb.h

# hash table creator/dumper
$O.msgdb: msgdbx.$O

$O.msgclass: hash.$O msgdbx.$O

$O.addhash: hash.$O 

$O.bayes: hash.$O