File: rules

package info (click to toggle)
ocaml-dbus 0.29-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 204 kB
  • sloc: ansic: 1,561; ml: 1,005; makefile: 82
file content (31 lines) | stat: -rwxr-xr-x 703 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
27
28
29
30
31
#!/usr/bin/make -f
# debian/rules for ocaml-dbus package

include /usr/share/ocaml/ocamlvars.mk

DESTDIR=$(CURDIR)/debian/tmp
OCAMLDESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)

ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
DEB_MAKE_BUILD_TARGET    := all-opt
DEB_MAKE_INSTALL_TARGET  := install-opt
else
DEB_MAKE_BUILD_TARGET    := all-byte
DEB_MAKE_INSTALL_TARGET  := install-byte
endif
DEB_MAKE_INSTALL_TARGET  += OCAMLDESTDIR="$(OCAMLDESTDIR)"

%:
	dh $@ --with ocaml

override_dh_auto_build:
	$(MAKE) $(DEB_MAKE_BUILD_TARGET)

override_dh_auto_install:
	mkdir -p $(OCAMLDESTDIR)
	$(MAKE) $(DEB_MAKE_INSTALL_TARGET)
	rm -f $(OCAMLDESTDIR)/dbus/test.cmx

ifneq ($(OCAML_HAVE_OCAMLOPT),yes)
override_dh_auto_test:
endif