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

Ralf Treinen treinen at debian.org
Thu Feb 2 13:31:55 UTC 2012


The following commit has been merged in the master branch:
commit 279e46b0446f108deeb47f408edfc3aecfce8455
Author: Ralf Treinen <treinen at 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



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