File: rules

package info (click to toggle)
debug-me 1.20181208-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 680 kB
  • sloc: haskell: 3,134; sh: 115; makefile: 80
file content (28 lines) | stat: -rwxr-xr-x 905 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

# Debian's ghc cannot compile anything with -fPIC at present, so we
# have to disable PIE hardening to avoid build failures on archs like
# amd64.  See discussion on debian-haskell@lists.debian.org
export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie

# cabal likes to write to $HOME, so use Setup.hs directly
export BUILDER = ./Setup

# -j1 in the hope of making the build reproducible (see Makefile)
export BUILDEROPTIONS = -j1

%:
	dh $@

# upstream's install-files target is not sufficient for our split into
# two binary packages, so disable it here and use dh_* tools
override_dh_auto_install:

# GHC cannot produce debugging symbols
override_dh_strip:
	dh_strip --no-automatic-dbgsym

# ensure service name is 'debug-me' not 'debug-me-server'.  This is so
# we are consistent with other distros despite our package split
override_dh_installinit:
	dh_installinit --name=debug-me