debian swirl logo

Back to the packages list ocaml-magic

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/ocaml.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

# In order to regenerate 'debian/control' :
#   DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
# Then check manually if everything's ok

DESTDIR = $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
DEB_MAKE_INSTALL_TARGET := install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore

build/libmagic-ocaml-dev::
		mkdir -p $(DESTDIR)
		make doc

clean::
		rm -rf Makefile examples/Makefile src/META src/Makefile 

Builds:

libmagic-ocaml-dev
ocaml bindings for the file type determination library
libmagic-ocaml
ocaml bindings for the file type determination library