File: rules

package info (click to toggle)
bisect-ppx 2.8.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,352 kB
  • sloc: ml: 3,575; javascript: 813; makefile: 226; sh: 140
file content (24 lines) | stat: -rwxr-xr-x 724 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 DH_VERBOSE = 1

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
MAN_NAME_SECTION="Generate coverage reports for OCaml and Reason."

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml --buildsystem ocaml_dune

execute_before_dh_auto_build:
	uglifyjs -m -c -o src/vendor/highlight.js/highlight.pack.js \
	debian/missing-sources/highlight.js

# missing one package for tests
override_dh_auto_test:

execute_after_dh_auto_install:
	help2man $(CURDIR)/debian/tmp/usr/bin/bisect-ppx-report --name=$(MAN_NAME_SECTION) --version-string=$(VERSION) > debian/bisect-ppx-report.1
	perl -i -pe 's/\?\?\?/... /g' debian/bisect-ppx-report.1

override_dh_dwz:
	dh_dwz --no-dwz-multifile