File: rules

package info (click to toggle)
mlpcap 0.9-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,300 kB
  • sloc: sh: 1,302; ansic: 142; ml: 94; makefile: 48
file content (30 lines) | stat: -rwxr-xr-x 627 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
#!/usr/bin/make -f
# debian/rules for mlpcap package

include /usr/share/ocaml/ocamlvars.mk

DESTDIR := $(CURDIR)/debian/tmp

DEB_MAKE_BUILD_TARGET    := all
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
DEB_MAKE_BUILD_TARGET    += opt
endif
DEB_MAKE_INSTALL_TARGET  := install \
  DESTDIR="-ldconf ignore -destdir $(DESTDIR)/$(OCAML_STDLIB_DIR)/"

CFLAGS += -fPIC

export NO_CUSTOM=y

%:
	dh $@ --with ocaml

override_dh_auto_configure:
	CFLAGS="$(CFLAGS)" dh_auto_configure

override_dh_auto_build:
	$(MAKE) $(DEB_MAKE_BUILD_TARGET)

override_dh_auto_install:
	mkdir -p $(DESTDIR)/$(OCAML_STDLIB_DIR)
	$(MAKE) $(DEB_MAKE_INSTALL_TARGET)