The following commit has been merged in the master branch:
commit ca052e17c723645a1f525f259c7c7adbc1fe4bac
Author: Stephane Glondu <st...@glondu.net>
Date:   Sat Aug 13 16:01:34 2011 +0200

    Override NATDYNLINK if needed

diff --git a/debian/rules b/debian/rules
index 3913e05..69ad0d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,18 +16,23 @@ else
   INSTALL_TARGET := install-byte
 endif
 
+ifeq ($(OCAML_NATDYNLINK),yes)
+  MAKE_EXTRA_VARS :=
+else
+  MAKE_EXTRA_VARS := NATDYNLINK=NO
+endif
 
 %:
        dh $@ --with ocaml
 
 .PHONY: override_dh_auto_build
 override_dh_auto_build:
-       $(MAKE) $(BUILD_TARGET)
+       $(MAKE) $(MAKE_EXTRA_VARS) $(BUILD_TARGET)
 
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
        mkdir -p $(OCAMLFIND_DESTDIR)
-       $(MAKE) $(INSTALL_TARGET)
+       $(MAKE) $(MAKE_EXTRA_VARS) $(INSTALL_TARGET)
 ifneq ($(findstring libtyxml-ocaml-doc,$(shell dh_listpackages)),)
-       $(MAKE) doc
+       $(MAKE) $(MAKE_EXTRA_VARS) doc
 endif

-- 
tyxml 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