File: rules

package info (click to toggle)
camlbz2 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 192 kB
  • sloc: ansic: 292; ml: 66; makefile: 17; sh: 8
file content (24 lines) | stat: -rwxr-xr-x 586 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DESTDIR=$(CURDIR)/debian/tmp
include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml --no-parallel

override_dh_auto_build:
	dune build @install
	dune build @doc
	cd _build/default/_doc/_html/bz2/Bz2 && \
	sed -e 's|href=\"../../odoc.support/odoc.css\"|href=\"/usr/share/odoc/odoc-theme/default/odoc.css\"|' < index.html > bz2.html

override_dh_auto_install-arch:
	dune install --destdir=$(DESTDIR) \
		--prefix=/usr --libdir=$(OCAML_STDLIB_DIR)

override_dh_clean:
	dune clean
	dh_clean

override_dh_auto_test: