File: rules

package info (click to toggle)
camlimages 1:4.2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,188 kB
  • sloc: ml: 11,620; ansic: 2,040; perl: 80; makefile: 33
file content (44 lines) | stat: -rwxr-xr-x 940 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

OMAKE=omake
DESTDIR=$(CURDIR)/debian/tmp
export OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_LDCONF=ignore
ifeq ($(OCAML_HAVE_OCAMLOPT),no)
export NATIVE_ENABLED=false
export OCAMLFIND_PREDICATES=byte
endif

ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
	OMAKE += --verbose
endif

%:
	dh $@ --with ocaml

.PHONY: override_dh_auto_build
override_dh_auto_build:
	$(OMAKE) --config

.PHONY: override_dh_auto_install
override_dh_auto_install:
	mkdir -p $(OCAMLFIND_DESTDIR)
	$(OMAKE) install

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	$(OMAKE) clean
	find -name '*.omc' -delete

.PHONY: override_dh_installexamples
override_dh_installexamples:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	dh_installexamples -X'.cm*' -X.o -Xliv-furuse -X.cvsignore
endif

.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --no-automatic-dbgsym