Build the PPX executable with compiler-libs and make

This commit is contained in:
sneeker committed 2018-05-27 08:40:09 +00:00
1 parent ec87737db5
commit a9c92107ea
5 files changed
+48

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
OCAMLC ?= ocamlc
.PHONY: all test clean
all: continuum_ppx
continuum_ppx: continuum_ppx.ml
$(OCAMLC) -I +compiler-libs ocamlcommon.cma $< -o $@
test: continuum_ppx
$(OCAMLC) -ppx ./continuum_ppx test.ml -o test.byte
./test.byte
OCAMLC=$(OCAMLC) sh test_errors.sh
clean:
rm -f continuum_ppx test.byte *.cmi *.cmo