File: rules

package info (click to toggle)
ocaml-migrate-parsetree 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,808 kB
  • sloc: ml: 32,352; makefile: 124; sh: 9
file content (26 lines) | stat: -rwxr-xr-x 716 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
#!/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_install:
	mkdir -p '$(OCAMLFIND_DESTDIR)'
	dh_auto_install -- INSTALL_ARGS='--destdir=$(DESTDIR) --verbose'

override_dh_missing:
	dh_missing --fail-missing

# Preprocess migrate_parsetree_versions.mli, which contains OCaml_OCAML_VERSION..
debian/preprocess-ocamldoc.sh:
	echo '#!/bin/sh' > "$@"
	echo 'sed -e "s/OCaml_OCAML_VERSION/OCaml_$(shell echo $(OCAML_ABI) | cut -d. -f1-2 | tr -d .)/g" "$$@"' >> "$@"
	chmod +x "$@"

override_dh_ocamldoc: debian/preprocess-ocamldoc.sh
	dh_ocamldoc -u "-pp $<"