File: rules

package info (click to toggle)
ocaml-reins 0.1a-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 932 kB
  • ctags: 1,618
  • sloc: ml: 8,353; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 611 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
21
22
23
24
25
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

DEST := $(CURDIR)/debian/libreins-ocaml-dev/$(OCAML_STDLIB_DIR)

%:
	dh --with ocaml $@

.PHONY: override_dh_auto_build
override_dh_auto_build:
	HOME=/nonexistant OCAMLFIND_DESTDIR=$(DEST) omake --config

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	HOME=/nonexistant omake clean
	rm -f .omake*
	find . -iname \*.omc -exec rm -f \{\} \;
	find . -iname \*.annot -exec rm -f \{\} \;
	rm -f doc/html/api/*

.PHONY: override_dh_auto_install
override_dh_auto_install:
	HOME=/nonexistant OCAMLFIND_DESTDIR=$(DEST) omake install