File: rules

package info (click to toggle)
extlib 1.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 632 kB
  • sloc: ml: 6,932; makefile: 119; sh: 42; ansic: 31
file content (30 lines) | stat: -rwxr-xr-x 746 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
30
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

PKGDIR = $(CURDIR)/debian/tmp
export OCAMLFIND_DESTDIR = $(PKGDIR)$(OCAML_STDLIB_DIR)

%:
	dh $@ --with ocaml

override_dh_auto_install:
	# if we do not create this directory manually beforehand, `ocamlfind install` will exit with:
	# ocamlfind: Bad configuration: Cannot mkdir [...] because a path component does not exist or is not a directory
	mkdir -p $(OCAMLFIND_DESTDIR)
	dh_auto_install

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

# do not require ocamlopt during building or testing
ifneq ($(OCAML_HAVE_OCAMLOPT),yes)
override_dh_auto_build:
	make -C src all

override_dh_auto_test:
	make -C test all run
endif

override_dh_missing:
	dh_missing --fail-missing