File: rules

package info (click to toggle)
ocaml-libvirt 0.6.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 800 kB
  • ctags: 457
  • sloc: sh: 2,990; ansic: 2,556; ml: 1,967; perl: 649; makefile: 249
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