3 include ../../etc/Makefile.defs
5 DIST=$(EXEC)---$(VERSION)
6 DATE=$(shell date +%y%m%d)
8 OCAMLOPTIONS = -linkpkg -thread -rectypes -package \"$(REQUIRES)\"
9 OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLOPTIONS)
10 OCAMLOPT = $(OCAMLFIND) opt $(OCAMLOPTIONS)
14 $(EXEC).native: $(wildcard *.ml) $(wildcard *.mli) $(wildcard *.mly) $(wildcard *.mll)
15 @echo " OCAMLBUILD $(EXEC).native"
16 $(H)ocamlbuild -ocamlc "$(OCAMLC)" -ocamlopt "$(OCAMLOPT)" -yaccflags "$(YACCFLAGS)" $(EXEC).native
20 rm -rf $(DIST) $(DIST).tgz
23 mkdir -p $(DIST)/Sources
25 cp *.ml *.mli *.mll *.mly Makefile _tags $(DIST)/Sources
26 cd $(DIST); ln -s Sources/$(EXEC).native $(EXEC)
27 tar -cvzf $(DIST).tgz $(DIST)