2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
include /usr/share/ocaml/ocamlvars.mk
9
include /usr/share/ocaml/ocamlinit.mk
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/class/autotools.mk
5
include /usr/share/cdbs/1/rules/ocaml.mk
7
# In order to regenerate 'debian/control' :
8
# DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
9
# Then check manually if everything's ok
11
DEB_CONFIGURE_EXTRA_FLAGS := --enable-debugging
11
12
DESTDIR = $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
12
CFLAGS = -Wall -g -fPIC
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23
config.status: configure
25
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
27
build: ocamlinit build-stamp
28
build-stamp: config.status
35
clean: ocamlinit-clean
40
[ ! -f Makefile ] || $(MAKE) distclean
41
rm -f config.log config.status
13
DEB_MAKE_INSTALL_TARGET := install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
15
build/libvorbis-ocaml-dev::
51
16
mkdir -p $(DESTDIR)
52
$(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
55
binary-arch: build install
58
dh_installchangelogs CHANGES
61
dh_install --list-missing
69
dh_gencontrol -- -VF:OCamlABI="$(OCAML_ABI)"
76
.PHONY: build clean binary-indep binary-arch binary install ocamlinit
20
rm -rf src/Makefile src/META doc config.log config.status