debian swirl logo

Back to the packages list mlton

#!/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/patchsys-quilt.mk

HEAPSIZE := $(shell . debian/heap-size)
		
# MLton compiles optimized, debug, and pic versions on its own.
DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)

# The MLton guide is html. Don't compress example .sml files.
DEB_COMPRESS_EXCLUDE_ALL = mlton/guide .sml

DEB_MAKE_CLEAN_TARGET   = clean clean-svn
DEB_MAKE_BUILD_TARGET   = all RUNTIME_ARGS="$(HEAPSIZE)"
DEB_MAKE_INSTALL_TARGET = install-no-strip DESTDIR=$(CURDIR)/debian/tmp/ PREFIX=/usr MAN_PREFIX_EXTRA=/share
DEB_MAKE_CHECK_TARGET   = check

# Useful when inspecting build logs
common-configure-arch::
		free

# Move MLton target to per-architecture path
common-install-arch::
		mv $(CURDIR)/debian/tmp/usr/lib/mlton/targets/self $(CURDIR)/debian/tmp/usr/lib/mlton/targets/$(DEB_HOST_GNU_TYPE)
		ln -s $(DEB_HOST_GNU_TYPE) $(CURDIR)/debian/tmp/usr/lib/mlton/targets/self

# Remove licenses and empty directories to appease lintian
common-install-indep::
		find $(CURDIR)/debian/tmp -type d -empty -delete
		rm -rf $(CURDIR)/debian/tmp/usr/share/doc/mlton/license
		if test -n "$(DEB_ISNATIVE)"; then mv \
			$(CURDIR)/debian/tmp/usr/share/doc/mlton/changelog \
			$(CURDIR)/debian/tmp/usr/share/doc/mlton/changelog.PreviousRelease; \
		fi

Builds:

mlton-basis
optimizing compiler for standard ml - basis library
mlton-compiler
optimizing compiler for standard ml - compiler
mlton-doc
optimizing compiler for standard ml - documentation
mlton
optimizing compiler for standard ml
mlton-runtime-alpha-linux-gnu
optimizing compiler for standard ml - alpha runtime libraries
mlton-runtime-arm-linux-gnueabihf
optimizing compiler for standard ml - armhf runtime libraries
mlton-runtime-arm-linux-gnueabi
optimizing compiler for standard ml - armel runtime libraries
mlton-runtime-hppa-linux-gnu
optimizing compiler for standard ml - hppa runtime libraries
mlton-runtime-i486-gnu
optimizing compiler for standard ml - hurd-i386 runtime libraries
mlton-runtime-i486-kfreebsd-gnu
optimizing compiler for standard ml - kfreebsd-i386 runtime libraries
mlton-runtime-i486-linux-gnu
optimizing compiler for standard ml - i386 runtime libraries
mlton-runtime-ia64-linux-gnu
optimizing compiler for standard ml - ia64 runtime libraries
mlton-runtime-mipsel-linux-gnu
optimizing compiler for standard ml - mipsel runtime libraries
mlton-runtime-mips-linux-gnu
optimizing compiler for standard ml - mips runtime libraries
mlton-runtime-native
optimizing compiler for standard ml - native runtime libraries
mlton-runtime-powerpc-linux-gnu
optimizing compiler for standard ml - powerpc runtime libraries
mlton-runtime-s390-linux-gnu
optimizing compiler for standard ml - s390 runtime libraries
mlton-runtime-sparc-linux-gnu
optimizing compiler for standard ml - sparc runtime libraries
mlton-runtime-x86-64-kfreebsd-gnu
optimizing compiler for standard ml - kfreebsd-amd64 runtime libraries
mlton-runtime-x86-64-linux-gnu
optimizing compiler for standard ml - amd64 runtime libraries
mlton-tools
optimizing compiler for standard ml - tools