File: rules

package info (click to toggle)
ocamlrss 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 196 kB
  • ctags: 303
  • sloc: ml: 1,274; makefile: 154
file content (25 lines) | stat: -rwxr-xr-x 410 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
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/ocaml/ocamlvars.mk


DESTDIR := $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)


export OCAMLFIND_DESTDIR=$(DESTDIR)
%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) byte doc
ifneq ($(OCAML_OPT_ARCH),)
	$(MAKE) opt
endif

override_dh_auto_install:
	mkdir -p $(DESTDIR)
	$(MAKE) install