File: rules

package info (click to toggle)
ocaml-sedlex 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 580 kB
  • sloc: ml: 5,702; pascal: 123; makefile: 33; sh: 9
file content (28 lines) | stat: -rwxr-xr-x 805 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
#!/usr/bin/make -f

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

%:
	dh $@ --with ocaml

override_dh_auto_configure:

override_dh_auto_build:
	dune build -p sedlex --verbose

override_dh_auto_install:
	dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=..$(OCAML_STDLIB_DIR) --verbose
	sed -i 's/uchar//g' $(OCAMLFIND_DESTDIR)/sedlex/META
	sed -i 's/uchar//g' $(OCAMLFIND_DESTDIR)/sedlex/dune-package
	sed -i 's/"uchar"//g' $(OCAMLFIND_DESTDIR)/sedlex/opam

override_dh_auto_test:
	dune build @runtest -p sedlex --verbose

# -lib is not available in the ocamldoc version as of writing (4.05)
override_dh_ocamldoc:
	[ ! "$$(ocamldoc --version)" \< "4.08.0" ] && dh_ocamldoc || echo "skip doc generation"

override_dh_dwz: