File: rules

package info (click to toggle)
ocaml-sha 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 284 kB
  • sloc: ansic: 1,609; makefile: 477; ml: 396
file content (20 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@ --with ocaml

export OCAMLFIND_DESTDIR = debian/tmp/$(shell /usr/bin/ocamlc -where)
export OCAMLFIND_LDCONF = ignore

ifneq ($(wildcard /usr/bin/ocamlopt),)
override_dh_auto_install:
	mkdir -p $(OCAMLFIND_DESTDIR)
	$(MAKE) install
else
override_dh_auto_build:
	$(MAKE) all-byte

override_dh_auto_install:
	mkdir -p $(OCAMLFIND_DESTDIR)
	$(MAKE) install-byte
endif