Changes by: Jason Hickey (jyh at cs.caltech.edu)
Date: 2003-12-02 16:58:37 -0800 (Tue, 02 Dec 2003)
Revision: 296
Log message:
| Added support for omake commands, and changed the syntax of active rules.
| The new syntax is like this:
|
| %.cmi: %.ml
| section rule
| if $(BYTE_ENABLED)
| %.cmi %.cmo: %.ml
| $(OCAMLC) $(OCAMLCFLAGS) $(OCAMLPPFLAGS) $(OCAMLINCLUDES) -c $<
| else
| %.cmi %.cmx %$(EXT_OBJ): %.ml
| $(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLPPFLAGS) $(OCAMLINCLUDES) -c $<
|
| There is also "section eval" for commands that are omake code.
|
| .version.ocaml: $(which $(OCAMLC))
| $(OCAMLC) -v > $@
| section eval
| if $(not $(grep q, 3.06, $@)) then
| eprint(You need ocaml version 3.06)
| exit 1