3
# This file is based on John Goerzen's Cabal Debian template.
4
# See http://www.n-heptane.com/nhlab/repos/cabalDebianTemplate/
6
# This file is in the public domain.
8
THIS := $(shell sed -ne 's/^Source: \(.*\)/\1/p' debian/control)
10
GHC := $(firstword $(shell bash -c "type -p ghc6 ghc"))
12
configure: configure-stamp
16
if [ -e Setup.lhs ]; then $(GHC) --make Setup.lhs -o setup; else $(GHC) --make Setup.hs -o setup; fi
17
./setup configure --ghc --prefix=$(PREFIX) $(CONFIGURE_OPTS)
22
build-stamp: configure-stamp
32
rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
33
rm -f configure-stamp build-stamp build-indep-stamp
44
build-indep: build-indep-stamp
48
install-indep: build-indep
55
# Build architecture-independent files here.
56
binary-indep: build-indep install-indep
59
dh_installchangelogs -i
73
# Build architecture-dependent files here.
74
binary-arch: build install
77
dh_installchangelogs -a
91
binary: binary-indep binary-arch
92
.PHONY: build clean binary-indep binary-arch binary install build-indep install-indep