File: rules

package info (click to toggle)
ocaml-result 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 92 kB
  • ctags: 18
  • sloc: makefile: 41; ml: 35
file content (24 lines) | stat: -rwxr-xr-x 399 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

include /usr/share/ocaml/ocamlvars.mk

DESTDIR = debian/tmp
export OCAMLFIND_DESTDIR = $(DESTDIR)/$(OCAML_STDLIB_DIR)

TARGETS = byte
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
TARGETS += native
endif

%:
	dh $@ --with ocaml

override_dh_auto_build:
	make $(TARGETS)

override_dh_auto_install:
	mkdir -p $(OCAMLFIND_DESTDIR)
	make install

override_dh_install:
	dh_install --fail-missing