Reflect changes in dh-ocaml
authorStephane Glondu <steph@glondu.net>
Tue, 17 Feb 2009 06:54:13 +0000 (07:54 +0100)
committerStephane Glondu <steph@glondu.net>
Tue, 17 Feb 2009 10:22:55 +0000 (11:22 +0100)
debian/rules

index 2c0c70a6aa45e6d2990154901edbb717821b83bb..f3f47ce1a467a9154faf7738718421895633102c 100755 (executable)
@@ -6,26 +6,18 @@ ALL_PACKAGES := $(shell sed -ne 's/^Package: //p' debian/control)
 OCAMLMAJOR := 3.11
 OCAMLMINOR := 0
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-OCAML_OPT_ARCH      ?= $(findstring $(DEB_BUILD_ARCH),$(OCAML_NATIVE_ARCHS))
-
 # Build cache (for Debian debugging)
 BUILDCACHE := $(wildcard ../ocaml.cache)
 
-# These are defined in ocamlvars.mk, but we redefine it since ocaml is not installed
+# These are defined here to avoid definition of them in ocamlvars.mk
 OCAML_ABI := $(OCAMLMAJOR).$(OCAMLMINOR)
 OCAML_STDLIB_DIR := /usr/lib/ocaml/$(OCAML_ABI)
-OCAML_DLL_DIR = $(OCAML_STDLIB_DIR)/stublibs
 OCAML_NATIVE_ARCHS := $(shell cat debian/native-archs)
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+OCAML_OPT_ARCH := $(findstring $(DEB_BUILD_ARCH),$(OCAML_NATIVE_ARCHS))
 OCAML_HAVE_OCAMLOPT := $(if $(OCAML_OPT_ARCH),yes,no)
-
-# We do not want ocamlvars.mk to be sourced again
-_cdbs_class_ocaml_vars = 1
-include /usr/share/cdbs/2/rules/ocamlinit.mk
+OCAML_OCAMLDOC_DESTDIR_HTML =
+include /usr/share/ocaml/ocamlinit.mk
 
 MD5SUMSDIR = /var/lib/ocaml/md5sums
 INSTDIR = $(CURDIR)/debian/tmp/usr