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
OCAMLABI := $(shell ocamlc -version)
9
OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
11
DESTDIR = $(CURDIR)/debian/tmp$(shell ocamlc -where)
13
CFLAGS = "-O2 -g -fPIC"
16
for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
18
config.status: configure
20
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
22
build: ocamlinit build-stamp
23
build-stamp: config.status
26
$(MAKE) CFLAGS=$(CFLAGS)
35
[ ! -f Makefile ] || $(MAKE) distclean
36
rm -f config.log config.status
47
$(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
50
binary-arch: build install
53
dh_installchangelogs CHANGES
56
dh_install --sourcedir=debian/tmp --list-missing
64
dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
71
.PHONY: build clean binary-indep binary-arch binary install ocamlinit