debian swirl logo

Back to the packages list json-wheel

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/ocaml.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$(shell ocamlc -where)
PREFIX = $(CURDIR)/debian/tmp/usr
DEB_MAKE_INSTALL_TARGET := install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore PREFIX=$(PREFIX)
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_DH_INSTALL_ARGS := --list-missing
DEB_INSTALL_CHANGELOGS := Changes
DEB_MAKE_BUILD_TARGET := bcl

ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
        DEB_MAKE_BUILD_TARGET += ncl jsoncat
	DEB_INSTALL_MANPAGES_libjson-wheel-ocaml-dev = debian/jsoncat.1
endif


CFLAGS += -fPIC

build/libjson-wheel-ocaml-dev::
		mkdir -p $(DESTDIR)
		mkdir -p $(PREFIX)/bin
		make html

Builds:

libjson-wheel-ocaml-dev
ocaml api to json data format