File: rules

package info (click to toggle)
ocaml-libvirt 0.6.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 800 kB
  • sloc: sh: 3,306; ml: 2,567; ansic: 1,776; perl: 804; makefile: 273
file content (31 lines) | stat: -rwxr-xr-x 967 bytes parent folder | download | duplicates (3)
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

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/ocaml.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DESTDIR_DEV=$(CURDIR)/debian/libvirt-ocaml-dev
DESTDIR=$(CURDIR)/debian/libvirt-ocaml

DEB_MAKE_CLEAN_TARGET    := clean
DEB_MAKE_BUILD_TARGET    := all
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
DEB_MAKE_BUILD_TARGET    += opt
DEB_MAKE_INSTALL_TARGET  := install-opt
else
DEB_MAKE_INSTALL_TARGET  := install-byte
endif
DEB_MAKE_INSTALL_TARGET  += OCAMLFIND_DESTDIR="$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)" prefix="$(DESTDIR)/usr"

clean::
	-$(RM) '$(CURDIR)/Make.rules'
	-$(RM) '$(CURDIR)/Makefile'
	-$(RM) '$(CURDIR)/libvirt/Makefile'
	-$(RM) '$(CURDIR)/examples/Makefile'

install/libvirt-ocaml-dev::
	mv $(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/libvirt/*.so $(DESTDIR)/$(OCAML_DLL_DIR)/
	rm -rf $(CURDIR)/debian/libvirt-ocaml/usr/bin