File: rules

package info (click to toggle)
ocaml-visitors 20200210-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,896 kB
  • sloc: ml: 4,077; makefile: 45; sh: 18
file content (32 lines) | stat: -rwxr-xr-x 567 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
29
30
31
32
#!/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 @install

override_dh_auto_build-indep:
	cd doc && $(MAKE)

override_dh_auto_install:
	# do nothing

override_dh_install-arch:
	mkdir -p $(DESTDIR)
	DESTDIR=$(DESTDIR) dune install
	# 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

override_dh_dwz:
	# do nothing