.PHONY: all clean

all: setup.ml
	ocaml setup.ml -build

setup.ml: _oasis
	oasis setup
	ocaml setup.ml -configure

clean:
	! [ -f setup.ml ] || ocaml setup.ml -clean
	oasis setup-clean
	$(RM) -f _tags
	$(RM) -f setup.data setup.ml
	$(RM) -f myocamlbuild.ml