File: rules

package info (click to toggle)
ocaml-ptmap 2.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 144 kB
  • sloc: ml: 349; makefile: 37; sh: 17
file content (29 lines) | stat: -rwxr-xr-x 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

DESTDIR=$(CURDIR)/debian/tmp
include /usr/share/ocaml/ocamlvars.mk
export OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)

ifeq ($(OCAML_HAVE_OCAMLOPT),no)
OBUILD_CONF_ARGS ?= --disable-executable-native --disable-library-native --disable-library-plugin --enable-executable-bytecode --enable-library-bytecode
endif

%:
	dh $@ --with ocaml

override_dh_auto_configure:
	obuild configure $(OBUILD_CONF_ARGS)

override_dh_auto_build:
	obuild build

# Disable test since the test isn't compatible with recent version of qcheck.
# Error: Cannot find file qcheck_runner.cmxa
override_dh_auto_test:

override_dh_auto_install:
	mkdir -p '$(OCAMLFIND_DESTDIR)'
	obuild install --destdir $(OCAMLFIND_DESTDIR)

override_dh_missing:
	dh_missing --fail-missing