debian swirl logo

Back to the packages list drift

#!/usr/bin/make -f

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk

DEB_CONFIGURE_EXTRA_FLAGS := --with-hc=ghc

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	DEB_CONFIGURE_EXTRA_FLAGS := $(DEB_CONFIGURE_EXTRA_FLAGS) --with-hcflags="-O0"
else 
	DEB_CONFIGURE_EXTRA_FLAGS := $(DEB_CONFIGURE_EXTRA_FLAGS) --with-hcflags="-O2"
endif

# Don't compress pdf files since pdf reader can not read pdf.gz files.
DEB_COMPRESS_EXCLUDE := .pdf

clean::
		rm -f docs/stamp-vti
		rm -f docs/version.texi 
		rm -f src/Rules.hs

common-build-arch::
		rm -f "$(DEB_BUILDDIR)/docs/drift.html"
		make -C "$(DEB_BUILDDIR)" docs
#	make -C "$(DEB_BUILDDIR)" pdf

binary-post-install/drift::
		install -m 644 -o root -g root "$(DEB_BUILDDIR)/docs/drift.html" debian/drift/usr/share/doc/drift/html
		install -m 644 -o root -g root "$(DEB_BUILDDIR)/docs/drift.ps"   debian/drift/usr/share/doc/drift
#	install -m 644 -o root -g root "$(DEB_BUILDDIR)/docs/drift.pdf"  debian/drift/usr/share/doc/drift
		rm debian/drift/usr/share/doc/drift/README

.PHONY:	update-debian-control

Builds:

drift
type sensitive preprocessor for haskell