File: rules

package info (click to toggle)
eliom 6.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,064 kB
  • sloc: ml: 29,591; makefile: 293; javascript: 234
file content (24 lines) | stat: -rwxr-xr-x 560 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DESTDIR=$(CURDIR)/debian/tmp
BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man

include /usr/share/ocaml/ocamlvars.mk

export OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
export OCAMLFIND_LDCONF=ignore

%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) all
	$(MAKE) man doc

override_dh_auto_install:
	opam-installer --prefix=debian/tmp/usr --libdir=$(subst /usr/,,$(OCAML_STDLIB_DIR)) --mandir=share/man --docdir=share/doc eliom.install