[Pkg-ocaml-maint-commits] [SCM] tyxml packaging branch, master, updated. debian/1.91-1-8-geb1ac14
Stephane Glondu
steph at glondu.net
Sat Aug 13 17:28:56 UTC 2011
The following commit has been merged in the master branch:
commit ca052e17c723645a1f525f259c7c7adbc1fe4bac
Author: Stephane Glondu <steph at 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
More information about the Pkg-ocaml-maint-commits
mailing list