Browse files

[build] add a 'prepare' target to use packages installed on the syste…

…m instead of downloading them on the internet
  • Loading branch information...
1 parent db7b80b commit 8fcaae2d54b02202ecf3bfbdcfe48fe56a19e2d6 @samoht samoht committed Sep 26, 2012
Showing with 54 additions and 0 deletions.
  1. +4 −0 Makefile
  2. +50 −0 depends.ocp.in
View
4 Makefile
@@ -23,6 +23,10 @@ opt: $(LOCAL_OCPBUILD)
$(LOCAL_OCPBUILD): ocp-build/ocp-build.boot ocp-build/win32_c.c
$(MAKE) -C ocp-build
+OCAMLFIND_DIR=$(shell ocamlfind printconf destdir)
+prepare: depends.ocp.in
+ sed "s|%{lib}%|$(OCAMLFIND_DIR)|g" depends.ocp.in > depends.ocp
+
compile: $(LOCAL_OCPBUILD)
$(OCPBUILD) -init -scan -sanitize $(TARGET)
View
50 depends.ocp.in
@@ -0,0 +1,50 @@
+begin library "re"
+ dirname += "%{lib}%/re"
+ generated = true
+end
+
+begin library "re_perl"
+ dirname += "%{lib}%/re"
+ generated = true
+ requires = [ "re" ]
+end
+
+begin library "re_glob"
+ dirname += "%{lib}%/re"
+ generated = true
+ requires = [ "re" ]
+end
+
+begin library "re_pcre"
+ dirname += "%{lib}%/re"
+ generated = true
+ requires = [ "re_perl" ]
+end
+
+begin library "graph"
+ dirname += "%{lib}%/ocamlgraph"
+ generated = true
+end
+
+begin library "arg"
+ dirname += "%{lib}%/ocaml-arg"
+ generated = true
+end
+
+begin library "cudf"
+ dirname += "%{lib}%/mancoosi-cudf"
+ generated = true
+ requires = [ "extLib" ]
+end
+
+begin library "dose"
+ dirname += "%{lib}%/mancoosi-dose"
+ generated = true
+ requires = [ "re_pcre" "extLib" "cudf" "graph" "unix" "str" ]
+end
+
+begin library "extLib"
+ dirname += "%{lib}%/extlib"
+ generated = true
+end
+

0 comments on commit 8fcaae2

Please sign in to comment.