-# 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)
#!/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)))
# 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)