1. camlspotter
  2. omy

Commits

camlspotter  committed 88a913c

added omyopam

  • Participants
  • Parent commits e955548
  • Branches default

Comments (0)

Files changed (1)

File OMyOPAM

View file
+# /home/jun/.opam/system/lib
+# Free var
+# 
+OCAMLFIND_DESTDIR=$(HOME)/.opam/system/lib
+
+OMyOPAM(name) =
+    $(Installed $(name)): 
+        opam --yes install $(name)
+        # (cd install-$(name); spotinstall $(name))
+        CreateInstalled($(name), $(find $(OCAMLFIND_DESTDIR)$(DIRSEP)$(name) -f {}))
+
+OMyOPAM2(name, ocamlfindpackname) =
+    $(Installed $(ocamlfindpackname)): 
+        opam --yes install $(name)
+        # (cd install-$(name); spotinstall $(name))
+        CreateInstalled($(ocamlfindpackname), $(find $(OCAMLFIND_DESTDIR)$(DIRSEP)$(ocamlfindpackname) -f {}))