[Pkg-ocaml-maint-commits] [SCM] ocaml-gnuplot packaging branch, master, updated. upstream/0.8.3-24-g734e2b9

Ralf Treinen treinen at debian.org
Thu Feb 2 14:37:51 UTC 2012


The following commit has been merged in the master branch:
commit 734e2b957cdc5515535944f03edf883272e47443
Author: Ralf Treinen <treinen at debian.org>
Date:   Thu Feb 2 15:34:57 2012 +0100

    use $(OCAML_HAVE_OCAMLOPT) to distinguish native from nonnative archs.
    
    Thansk to Mehdy for the hint

diff --git a/debian/rules b/debian/rules
index 50e2e16..db4d8e9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,14 @@
 #!/usr/bin/make	 -f
 
-OPTCOMPILER=/usr/bin/ocamlopt
-
 %:
 	dh $@ --with ocaml
 
 override_dh_auto_build:
-	if [ -x $(OPTCOMPILER) ]; then $(MAKE); else $(MAKE) byte; fi
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+	$(MAKE)
+else
+	$(MAKE) byte
+endif
 	make doc
 
 override_dh_auto_clean:

-- 
ocaml-gnuplot packaging



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