Commits

camlspotter  committed cbb3906

multi pack for external2

  • Participants
  • Parent commits 955d3a8

Comments (0)

Files changed (3)

 Subdirs()
-
-
-
 # Tools for apt-get
 # =====================
 
-#| A flag to tell that we can use OMyApt functions. False by default. Turn it on if you want to have automatic apt package installation.
-WithOMyApt=false
+#| A flag to tell that we can use OMyApt functions. True by default. Turn it on if you want to have automatic apt package installation.
+WithOMyApt=true
 
 #| Installation check. Return the list of installed apt packages.
 #

File OMyExternal2

 # ============================
 
 #| SOURCES
-OCamlExternalPack2(PACK) =
+OCamlExternalPack2(PACKS) =
 
     SOURCEPATHS[]=
 
     very-clean:
         rm -rf $(BUILD_DIR)
 
-    installed=$(INSTALLED)/$(PACK)
+    installed=$(addprefix $(INSTALLED)/, $(PACKS))
     foreach(x, $(SOURCES))
         DependPATH($(x))
         export
     $(installed): $(SOURCEPATHS)
         # CR jfuruse: todo: clear _build
         mkdir_if_not_exists($(BUILD_DIR))
-        ocamlfind remove $(PACK)
+        ocamlfind remove $(PACKS)
         cd $(BUILD_DIR); ../install.sh
-        cd $(BUILD_DIR); spotinstall $(PACK)
-        CreateInstalled($(PACK), $(find $(OCAMLFIND_DESTDIR)$(DIRSEP)$(PACK) -f {}))
+        cd $(BUILD_DIR); spotinstall $(PACKS)
+	foreach(x, $(PACKS))
+            CreateInstalled($(x), $(find $(OCAMLFIND_DESTDIR)$(DIRSEP)$(x) -f {}))
 
     install: $(installed)