-
Notifications
You must be signed in to change notification settings - Fork 144
/
Makefile
68 lines (48 loc) · 1.02 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
DOC=chisel-book
all: test gencode fig book genslides
# scala scripts/gencode.scala
test:
sbt test
vhdl:
make -C src/main/vhdl
gencode:
-mkdir code
sbt -Dsbt.main.class=sbt.ScriptMain scripts/gencode.scala
keywords:
sbt -Dsbt.main.class=sbt.ScriptMain scripts/keywords.scala
checkref:
sbt -Dsbt.main.class=sbt.ScriptMain scripts/checkref.scala
fig:
make -C figures
book: gencode fig
pdflatex $(DOC)
pdflatex $(DOC)
bibtex $(DOC)
makeindex $(DOC)
pdflatex $(DOC)
pdflatex $(DOC)
genslides: gencode fig
cd slides; ./doslides.sh
veryclean:
git clean -fd
rm -rf ./idea
clean:
rm -fr *.aux *.bbl *.blg *.log *.lof *.lot *.toc *.gz *.lol # *.pdf
rm -rf code
rm -rf test_run_dir
rm -rf target
rm -rf generated
# test only one
flasher:
sbt "testOnly FlasherSpec"
rtf:
latex2rtf chisel-book.tex
detex:
detex chisel-book.tex > chisel-book.txt
eclipse:
sbt eclipse
chisel2_test:
cd chisel2; sbt "runMain RegisterTester"
cd chisel2; sbt "runMain LogicTester"
chisel2_hw:
cd chisel2; sbt "runMain LogicHardware"