PACKAGES=xml-light,ocamlduce CAMLC=ocamlducefind ocamlc -g -package "$(PACKAGES)" CAMLOPT=ocamlducefind ocamlopt -package "$(PACKAGES)" CAMLDEP=ocamlducefind ocamldep all: dump_schema dump_schema.opt OBJS= schema.cmo schema_tools.cmo schema_loader.cmo xhtml1_strict.cmo dump_schema.cmo .SUFFIXES: .ml .mli .cmo .cmi .cmx xhtml1_strict.ml: xhtml1_strict.mli cp $< $@ dump_schema: $(OBJS) $(CAMLC) -linkpkg -o $@ $(OBJS) dump_schema.opt: $(OBJS:.cmo=.cmx) $(CAMLOPT) -linkpkg -o $@ $(OBJS:.cmo=.cmx) .ml.cmo: $(CAMLC) -c $< .mli.cmi: $(CAMLC) -c $< .ml.cmx: $(CAMLOPT) -c $< clean: rm -f *.cm* *~ *.o *.a rm -f dump_schema dump_schema.opt .PHONY: depend depend: $(CAMLDEP) *.ml *.mli > depends include depends DIST = Makefile depends xhtml1*.ml* schema*.ml* dump_schema.ml dist: cp $(DIST) ~/public_html/ocamlduce/samples/schema