/
Makefile
38 lines (28 loc) · 890 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
FILES=\
cass.cmxa cass.cma \
cass_ast.mli cass_ast.cmi cass_ast.cmx \
cass_parser.mli cass_parser.cmi cass_parser.cmx \
cass_printer.mli cass_printer.cmi cass_printer.cmx \
cass_quotations.cmi cass_quotations.cmx \
cass_top.cmo \
css.cmx css.cmo css.cmi
BFILES=$(addprefix _build/,$(FILES))
STUFF=$(shell ocamlfind query cass -r -format "-I %d %a" -predicates byte)
all:
ocamlbuild cass.cma cass_top.cmo cass.cmxa
ocamlbuild -pp "camlp4orf cass.cma" css.cmo css.cmx
install:
ocamlfind install cass META $(BFILES)
uninstall:
ocamlfind remove cass
clean:
ocamlbuild -clean
rm -rf test.exp test.cmo test.cmx test.cmi test.o
test:
ocamlbuild -pp "camlp4orf cass.cma" test.byte --
.PHONY: text_exp
test_exp: test.ml
camlp4of _build/cass.cma test.ml -printer o > test_exp.ml
ocamlc -annot -I _build/ css.cmo test_exp.ml -o test_exp
debug: all
camlp4of _build/cass.cma test.ml