2
# Generic Haskell cabal library debian/rules v0.4 by Ian Lynagh,
3
# based on the example by Joey Hess.
4
# This file is public domain software.
6
# Uncomment this to turn on verbose mode.
9
CONFIGURE_OPTS = --enable-library-vanilla \
10
--enable-library-profiling \
11
--enable-library-for-ghci \
18
update-haskell-control --check
19
ghc --make Setup.hs -o setup-ghc
20
./setup-ghc configure --ghc --prefix=/usr $(CONFIGURE_OPTS)
31
rm -f Setup.o Setup.hi setup-ghc
41
./setup-ghc copy --copy-prefix=`pwd`/debian/`dh_listpackages`/usr
42
./setup-ghc register --gen-script
43
./setup-ghc unregister --gen-script
44
mkdir -p `pwd`/debian/`dh_listpackages`/usr/lib/`dh_listpackages`
45
mv register.sh `pwd`/debian/`dh_listpackages`/usr/lib/`dh_listpackages`
46
mv unregister.sh `pwd`/debian/`dh_listpackages`/usr/lib/`dh_listpackages`
48
update-generated-files:
49
update-haskell-control
50
sed "s/@PACKAGE@/`dh_listpackages`/g" \
51
debian/`dh_listpackages`.prerm.in \
52
> debian/`dh_listpackages`.prerm
53
sed "s/@PACKAGE@/`dh_listpackages`/g" \
54
debian/`dh_listpackages`.postinst.in \
55
> debian/`dh_listpackages`.postinst
57
# Build architecture-independent files here.
58
binary-indep: build install
59
# We have nothing to do by default.
61
# Build architecture-dependent files here.
62
binary-arch: build install
94
binary: binary-indep binary-arch
95
.PHONY: build clean binary-indep binary-arch binary install