[Pkg-ocaml-maint-commits] [SCM] OCaml transition monitor branch, master, updated. 1562fb20e6202fc9e1140a6a28c8cf5ce19f7d03

Stephane Glondu steph at glondu.net
Thu Jul 2 19:17:46 UTC 2009


The following commit has been merged in the master branch:
commit 1562fb20e6202fc9e1140a6a28c8cf5ce19f7d03
Author: Stephane Glondu <steph at glondu.net>
Date:   Thu Jul 2 21:16:59 2009 +0200

    Use ocamlbuild

diff --git a/Makefile b/Makefile
index 5a2f82f..a981d85 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
-all: ocaml_transition_monitor.byte
+PKGS := -package ocsigen.xhtml,str,ocamlgraph
+OCAMLBUILD := ocamlbuild -ocamlc 'ocamlfind ocamlc $(PKGS)' -ocamlopt 'ocamlfind ocamlopt $(PKGS)'
+OCAMLBUILD += -lflags -linkpkg -no-links
 
-cron:
-	@./ocaml_transition_monitor.byte --quiet
-
-%.byte: %.ml
-	ocamlfind ocamlc -package ocsigen.xhtml,str,ocamlgraph -linkpkg -o $@ $<
+all:
+	$(OCAMLBUILD) ocaml_transition_monitor.native
+	for u in $(wildcard *.js *.css); do ln -sf ../$$u _build/$$u; done
 
-%.ml: %.mll
-	ocamllex $<
+cron:
+	@cd _build && ./ocaml_transition_monitor.native --quiet
 
 clean:
-	rm -f Packages.* *.html *.cm* *.byte *~
+	$(OCAMLBUILD) -clean

-- 
OCaml transition monitor



More information about the Pkg-ocaml-maint-commits mailing list