File: rules

package info (click to toggle)
ocamlrss 2.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: ml: 2,185; makefile: 155
file content (26 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (2)
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
#!/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
	rm -f debian/tmp$(OCAML_STDLIB_DIR)/rss/LICENSE