File: rules

package info (click to toggle)
ocaml-ctypes 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,568 kB
  • ctags: 2,695
  • sloc: ml: 12,130; ansic: 2,533; makefile: 236; sh: 102
file content (27 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
25
26
27
#!/usr/bin/make -f
# -*- makefile -*-

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

DESTDIR := $(CURDIR)/debian/tmp

include /usr/share/ocaml/ocamlvars.mk

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

export OCAMLFIND_DESTDIR
export OCAMLFIND_LDCONF

%:
	dh $@ --with ocaml

.PHONY: override_dh_auto_install
override_dh_auto_install:
	mkdir -p $(OCAMLFIND_DESTDIR) $(DESTDIR)/$(OCAML_DLL_DIR)
	dh_auto_install

.PHONY: override_dh_install
override_dh_install:
	dh_install --fail-missing -X.so.owner -XCHANGES.md