-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (31 loc) · 910 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
.PHONY: run clean realclean tgz
UCI=https://archive.ics.uci.edu/ml/machine-learning-databases/bag-of-words/
run:
julia driver.jl
anchor_topic.md: anchor_topic.jl
awk -f doc.awk anchor_topic.jl > anchor_topic.md
anchor_topic.pdf: anchor_topic.md
pandoc -o $@ $<
clean:
rm -f anchor_topic.md anchor_topic.pdf
realclean: clean
rm -f topics*.txt
rm -f csub*
rm -f ompsub*
fetch_kos:
( cd uci ; wget $(UCI)/docword.kos.txt.gz )
( cd uci ; wget $(UCI)/vocab.kos.txt )
fetch_nips:
( cd uci ; wget $(UCI)/docword.nips.txt.gz )
( cd uci ; wget $(UCI)/vocab.nips.txt )
fetch_enron:
( cd uci ; wget $(UCI)/docword.enron.txt.gz )
( cd uci ; wget $(UCI)/vocab.enron.txt )
fetch_nytimes:
( cd uci ; wget $(UCI)/docword.nytimes.txt.gz )
( cd uci ; wget $(UCI)/vocab.nytimes.txt )
tgz:
ln -s . topics
tar -czf topics.tgz \
`cat topics/manifest.txt | awk '{ print "topics/" $$1}' `
rm -f topics