-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
39 lines (29 loc) · 1.88 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
all: test profile
profile:
python3 -m cProfile -s tottime connectiongrammar/ldrgenerate.py castle.ldr examples/castle/wall_constraints.pcfg examples/brick_shared/brick.pcfg examples/castle/brick_defs.pcfg examples/brick_shared/tile.pcfg examples/brick_shared/close.pcfg > profile.txt
head profile.txt -n 20
test:
python3 -m pyflakes connectiongrammar
python3 -m doctest -o ELLIPSIS connectiongrammar/generate.py
python3 -m doctest -o ELLIPSIS connectiongrammar/spatial_fitness.py
python3 -m doctest -o ELLIPSIS connectiongrammar/ldrgenerate.py
python3 -m doctest -o ELLIPSIS connectiongrammar/ldr2pcfg.py
dish:
python3 connectiongrammar/ldrgenerate.py dish.ldr examples/dish/constraints.pcfg examples/brick_shared/brick.pcfg examples/brick_shared/rainbow_brick_defs.pcfg examples/brick_shared/close.pcfg
castle:
python3 connectiongrammar/ldrgenerate.py castle.ldr examples/castle/wall_constraints.pcfg examples/brick_shared/brick.pcfg examples/castle/brick_defs.pcfg examples/brick_shared/tile.pcfg examples/brick_shared/close.pcfg
augcastle:
python3 connectiongrammar/ldr2pcfg.py examples/castle/drawbridge.ldr examples/castle/augmented_init.pcfg
python3 connectiongrammar/ldrgenerate.py augcastle.ldr examples/castle/augmented_init.pcfg examples/brick_shared/brick.pcfg examples/brick_shared/tile.pcfg examples/castle/brick_defs.pcfg examples/brick_shared/close.pcfg
rock:
python3 connectiongrammar/ldrgenerate.py rock.ldr examples/rock/rock.pcfg
doxygen:
doxygen .doxygen
docs/slides.html: docs/slides.md docs/english-parse-example.png docs/english-nonsense-example.png
pandoc --mathjax -t revealjs --standalone -V theme:white -V history=true -V revealjs-url="https://revealjs.com" -o $@ $<
docs/%.png: docs/%.dot
dot -Tpng $< -o $@
clean:
rm -f *.ldr
rm -rf connectiongrammar/__pycache__
rm -rf docs/html docs/latex docs/slides.html docs/english-parse-example.png docs/english-nonsense-example.png