aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 76e02ba286b0009b6dda5708412dbb7f749f10bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

DEB_DESTDIR = $(CURDIR)/debian/ivy-ocaml
DEB_OCAML_DESTDIR = $(DEB_DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_DESTDIR = $(DEB_OCAML_DESTDIR)

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

%:
	dh $@ --with ocaml

override_dh_auto_install :
	mkdir -p $(DEB_OCAML_DESTDIR)
	mkdir -p $(DEB_OCAML_DESTDIR)/stublibs
	$(MAKE) DESTDIR=$(DEB_DESTDIR) COMPAT_SYMLINK_CREATE=n install

.PHONY: override_dh_auto_install