#!/usr/bin/make -f #export DH_VERBOSE=1 include /usr/share/ocaml/ocamlvars.mk DESTDIR = $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR) CFLAGS = -Wall -g -fPIC ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif .PHONY: override_dh_auto_configure override_dh_auto_configure: CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \ --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info .PHONY: override_dh_auto_build override_dh_auto_build: $(MAKE) all ifneq ($(OCAML_OPT_ARCH),) $(MAKE) opt endif .PHONY: override_dh_auto_clean override_dh_auto_clean: rm -f build-stamp [ ! -f Makefile ] || $(MAKE) clean rm -f config.log config.status Makefile .PHONY: override_dh_auto_install override_dh_auto_install: mkdir -p $(DESTDIR) $(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore .PHONY: override_dh_installchangelogs override_dh_installchangelogs: dh_installchangelogs CHANGES %: dh $@ --with ocaml