From: Ximin Luo Date: Fri, 21 Jul 2017 15:42:50 +0000 (+0200) Subject: More restructuring of ocamlvars.mk to pull in dependency variables X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=10cedb25012bab269620dba81cfb269880b29260;p=ocaml.git More restructuring of ocamlvars.mk to pull in dependency variables --- diff --git a/debian/ocamlvars.mk b/debian/ocamlvars.mk index 1ec64373..3f436592 100644 --- a/debian/ocamlvars.mk +++ b/debian/ocamlvars.mk @@ -1,4 +1,8 @@ -# Can't use /usr/share/ocaml/ocamlvars.mk because it tries to run ocamlc +include /usr/share/dpkg/architecture.mk + +OCAMLMAJOR := 4.05 +OCAMLMINOR := 0 + OCAML_ABI := $(OCAMLMAJOR).$(OCAMLMINOR) OCAML_STDLIB_DIR := /usr/lib/ocaml OCAML_NATIVE_ARCHS := $(shell cat debian/native-archs) diff --git a/debian/rules b/debian/rules index 4224b324..a6b1c99d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,13 @@ #!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk -include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk PACKAGE := ocaml ALL_PACKAGES := $(shell dh_listpackages) -OCAMLMAJOR := 4.05 -OCAMLMINOR := 0 + +# Can't use /usr/share/ocaml/ocamlvars.mk because it tries to run ocamlc +include $(CURDIR)/debian/ocamlvars.mk # Use ccache if pkg.ocaml.ccache build-profile is active. ifneq (,$(filter pkg.ocaml.ccache,$(DEB_BUILD_PROFILES))) @@ -20,8 +20,6 @@ endif # Build cache (for Debian debugging) BUILDCACHE := $(wildcard ../ocaml.cache) -include $(CURDIR)/debian/ocamlvars.mk - MD5SUMSDIR = /var/lib/ocaml/md5sums INSTDIR = $(CURDIR)/debian/tmp/usr DISTDIR = $(PACKAGE)-$(OCAML_ABI)