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
