Commit 532b50f3 authored by Raphaël Cauderlier's avatar Raphaël Cauderlier
Browse files

Generalize compilation of ocaml files

parent d6561362
......@@ -3,5 +3,5 @@
.depend
tmp.dk
_build/
sigmaid.native
*.native
test.dk
......@@ -3,10 +3,13 @@ DKS = $(wildcard *.dk)
DKOS = $(DKS:.dk=.dko)
.PHONY: clean depend
.SUFFIXES: .dk .dko
.SUFFIXES: .dk .dko .ml .native
.dk.dko:
dkcheck -e -nc -r $<
.ml.native:
ocamlbuild -use-menhir $@
all: $(DKOS) sigmaid.native
depend: .depend
......@@ -14,10 +17,7 @@ depend: .depend
dkdep pts.dk dk_*.dk > .depend
clean:
rm -f *.dko .depend tmp.dk test.dk sigmaid.native
sigmaid.native:
ocamlbuild -use-menhir sigmaid.native
rm -rf *.dko .depend tmp.dk test.dk sigmaid.native _build
test.dk: sigmaid.native
./sigmaid.native test.sigma > test.dk
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment