Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OCamlPro/opam
Browse files Browse the repository at this point in the history
  • Loading branch information
tuong committed Sep 26, 2012
2 parents 3e58a23 + 022a533 commit 48ceef2
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Makefile
Expand Up @@ -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)

Expand Down Expand Up @@ -57,7 +61,7 @@ tests-git:
META: META.in
sed 's/@VERSION@/$(version)/g' < $< > $@

.PHONY: install
.PHONY: uninstall install
install:
mkdir -p $(prefix)/bin
$(MAKE) $(TARGETS:%=%-install)
Expand All @@ -67,6 +71,19 @@ uninstall:
rm -f $(prefix)/bin/opam*
rm -f $(mandir)/man1/opam*

LIB = opam-lib
CMI = file path file_format process globals repositories lexer run\
linelexer types parallel utils parser
_FILES= $(LIB:%=%.a) $(LIB:%=%.cma) $(LIB:%=%.cmxa)\
$(CMI:%=%.cmi)
FILES = $(_FILES:%=_obuild/opam-lib/%)

.PHONY: libuninstall libinstall
libinstall: META
ocamlfind install opam META $(FILES)
libuninstall:
ocamlfind remove opam

doc: compile
mkdir -p doc/html/
ocamldoc \
Expand Down
50 changes: 50 additions & 0 deletions 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 48ceef2

Please sign in to comment.