summaryrefslogtreecommitdiff
path: root/rules
blob: 330b78bbdc3c0240cc064fbffcfaddd86fa5fd16 (plain)
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

include /usr/share/ocaml/ocamlvars.mk

DESTDIR = $(CURDIR)/debian/libppx-visitors-ocaml-dev/

%:
	dh $@ --with ocaml

override_dh_auto_build-arch:
	dune build -p visitors,visitors.runtime,visitors.ppx @install

override_dh_auto_build-indep:
	cd doc && $(MAKE) SHELL=/bin/bash

override_dh_auto_install:
	# do nothing

override_dh_install-arch:
	dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=$(OCAML_STDLIB_DIR)
	# all useful docs are directly installed into the -doc package
	rm -r $(DESTDIR)/usr/doc

override_dh_install-indep:
	dh_installdocs -i

override_dh_auto_test:
	# do nothing