[Pkg-ocaml-maint-commits] [SCM] dose2 packaging branch, master, updated. 34228ff9e71134bf50482b4db619a8d8be775a2d

Stefano Zacchiroli zack at upsilon.cc
Wed Apr 16 20:01:35 UTC 2008


The following commit has been merged in the master branch:
commit 8cab5e06fd3c0f70acbab1a5783b95673f375021
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Wed Apr 16 21:34:36 2008 +0200

    better implementation of byte/opt split

diff --git a/Makefile b/Makefile
index dd13a23..ea97d97 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,9 @@ DO=$(MAKE) -I $(PWD)/make BASE=$(PWD)
 .PHONY: $(DIRS)
 .PHONY: dose2-util dose2-io install
 
-all: dql
+all: byte opt
+byte: dql/dql.cma
+opt: dql/dql.cmxa
 
 clean:
 	@for x in $(DIRS) ; do \
@@ -55,15 +57,10 @@ $(1)/$(1).cmxa: $(foreach x,$(2),$x/$x.cmxa)
 $(1)/$(1).cma: $(foreach x,$(2),$x/$x.cma)
 
 $(1)/$(1).cmxa:
-       $(DO) -C $(1) opt
+	$(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
+	$(DO) -C $(1) byte
 endef
 
 #$(foreach exec, $(EXECS), $(eval $(call EXEC_TEMPLATE,$(exec))))

-- 
dose2 packaging



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