blob: 9897d43de7a96179d4f123506a538a2a2a66b9bb (
plain)
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
|