The following commit has been merged in the master branch:
commit 279e46b0446f108deeb47f408edfc3aecfce8455
Author: Ralf Treinen <trei...@debian.org>
Date:   Thu Feb 2 12:04:30 2012 +0100

    compilation: distinction byte/native. Create and install docs.

diff --git a/debian/libgnuplot-ocaml-dev.docs b/debian/libgnuplot-ocaml-dev.docs
new file mode 100644
index 0000000..de0bdaf
--- /dev/null
+++ b/debian/libgnuplot-ocaml-dev.docs
@@ -0,0 +1 @@
+gnuplot.html/
diff --git a/debian/rules b/debian/rules
index 1ba13f1..50e2e16 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +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
+       make doc
+
 override_dh_auto_clean:
        # hack to avoid removal of debian/rules when building from git
        chmod 644 debian/rules

-- 
ocaml-gnuplot packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to