VERSION = 0.3.0 NAME = http_getter REQUIRES = helm-getter helm-logger helm-registry COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o OCAMLFIND = ocamlfind OCAMLC = $(OCAMLFIND) ocamlc -g $(COMMONOPTS) OCAMLOPT = $(OCAMLFIND) opt $(COMMONOPTS) all: byte byte: $(NAME) opt: $(NAME).opt world: byte opt $(NAME): main.ml $(OCAMLC) -linkpkg -thread -o $@ $^ $(NAME).opt: main.ml $(OCAMLOPT) -linkpkg -thread -o $@ $^ distclean: clean clean: rm -f *.cm[aiox] *.o $(NAME){,.opt} *.dot .PHONY: all byte opt world clean distclean