From 10cedb25012bab269620dba81cfb269880b29260 Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Fri, 21 Jul 2017 17:42:50 +0200 Subject: [PATCH] More restructuring of ocamlvars.mk to pull in dependency variables --- debian/ocamlvars.mk | 6 +++++- debian/rules | 8 +++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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) -- 2.30.2