[Pkg-ocaml-maint-commits] [SCM] dose2 packaging branch, master, updated. 7fed3623d29483b6d41c545f29ab58c7c09ca1b6

Stefano Zacchiroli zack at upsilon.cc
Thu Apr 10 13:42:57 UTC 2008


The following commit has been merged in the master branch:
commit 27152fe57b2582ff9014187b40b841fe77bff51e
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Thu Apr 10 15:27:33 2008 +0200

    add fine-grained "byte" and "opt" make target
    
    "byte" only builds bytecode objects, "opt" only builds native code
    objects. Invoking "install" after them will only install the built
    objects.

diff --git a/Makefile b/Makefile
index 1052577..dd13a23 100644
--- a/Makefile
+++ b/Makefile
@@ -54,8 +54,16 @@ $(1)/$(1).cmxa: $(foreach x,$(2),$x/$x.cmxa)
 
 $(1)/$(1).cma: $(foreach x,$(2),$x/$x.cma)
 
-$(1)/$(1).cmxa $(1)/$(1).cma:
-	$(DO) -C $(1) all
+$(1)/$(1).cmxa:
+       $(DO) -C $(1) opt
+
+$(1)/$(1).cma:
+       $(DO) -C $(1) byte
+
+$(1).byte: $(1)/$(1).cma
+$(1).opt: $(1)/$(1).cmxa
+byte: $(1).byte
+opt: $(1).opt
 endef
 
 #$(foreach exec, $(EXECS), $(eval $(call EXEC_TEMPLATE,$(exec))))

-- 
dose2 packaging



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