Fix demo of unbalanced behaviour - use graphviz
[tiger.ml.git] / exercises / ch01 / Makefile
CommitLineData
e6273b7a
SK
1MAKEFLAGS := --no-builtin-rules
2
3OCAMLC_OPTIONS := -w A -warn-error A
4OCAMLC_BYTE := ocamlc.opt $(OCAMLC_OPTIONS)
5
564eb9f3 6.PHONY: build clean demo_unbalanced
e6273b7a 7
f76c63f8
SK
8build : \
9 straight_line_program_interpreter \
10 tree
e6273b7a
SK
11
12%: %.ml %.cmo %.cmi
13 $(OCAMLC_BYTE) -o $@ $*.cmo
14
15%.cmi: %.mli
16 $(OCAMLC_BYTE) -o $@ -c $<
17
18%.cmo: %.ml %.cmi
19 $(OCAMLC_BYTE) -c $<
20
21clean:
22 rm -f straight_line_program_interpreter
564eb9f3
SK
23
24tree.png: tree
25 ./tree a b c d e f g h i j k l m n o p q r s t u v foo bar kgkvbkvg lkhjlk gfjyfjf fdtrdchfhtr trhfgfch hjlilijhl iygkyugkgkhy | neato -T png > tree.png
26
27demo_unbalanced: tree.png
28 sxiv ./tree.png
This page took 0.030564 seconds and 4 git commands to generate.