[Pkg-ocaml-maint-commits] [SCM] react packaging branch, master, updated. upstream/0.9.0-6-g4a79150

Stephane Glondu steph at glondu.net
Wed Jun 10 20:14:53 UTC 2009


The following commit has been merged in the master branch:
commit 4a7915035e61df6bc722971274a99140ecc2f618
Author: Stephane Glondu <steph at glondu.net>
Date:   Wed Jun 10 22:13:08 2009 +0200

    Run test after build

diff --git a/debian/rules b/debian/rules
index 37a0722..65b40a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ include /usr/share/ocaml/ocamlinit.mk
 
 OCAMLBUILD := ocamlbuild -classic-display $(if $(OCAML_OPT_ARCH),,-byte-plugin)
 
-TARGETS := react.cmo $(if $(OCAML_OPT_ARCH),react.cmx)
+TARGETS := react.cmo $(if $(OCAML_OPT_ARCH),react.cmx test.native,test.byte)
 
 %:
 	dh $@
@@ -15,7 +15,10 @@ override_dh_auto_configure: ocamlinit-stamp $(QUILT_STAMPFN)
 .PHONY: override_dh_auto_build
 override_dh_auto_build:
 	$(OCAMLBUILD) $(TARGETS)
-ifneq ($(OCAML_OPT_ARCH),)
+ifeq ($(OCAML_OPT_ARCH),)
+	./test.byte
+else
+	./test.native
 	ocamlopt -shared -o _build/src/react.cmxs _build/src/react.cmx
 endif
 

-- 
react packaging



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