File: rules

package info (click to toggle)
cudf 0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 648 kB
  • sloc: ml: 2,539; ansic: 869; makefile: 201; sh: 18
file content (25 lines) | stat: -rwxr-xr-x 464 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 -*-

export DH_VERBOSE=1

include /usr/share/ocaml/ocamlvars.mk
DESTDIR := $(CURDIR)/debian/tmp
export OCAMLFIND_DESTDIR := $(DESTDIR)/$(OCAML_STDLIB_DIR)

%:
	dh $@ --with ocaml --no-parallel

override_dh_auto_build:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE) all c-lib opt c-lib-opt
else
	$(MAKE) all c-lib
endif

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(DESTDIR)
	dh_installexamples

override_dh_dwz:
	# do nothing