File: rules

package info (click to toggle)
cryptgps 0.2.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 364 kB
  • sloc: ml: 2,627; ansic: 172; sh: 169; makefile: 118
file content (21 lines) | stat: -rwxr-xr-x 447 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
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

PKGNAME = libcryptgps-ocaml-dev
DESTDIR := $(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR)

DEB_MAKE_BUILD_TARGET = all
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	DEB_MAKE_BUILD_TARGET += opt
endif

%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) $(DEB_MAKE_BUILD_TARGET) ROPTIONS=-safe-string

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