File: rules

package info (click to toggle)
shellcheck 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,048 kB
  • sloc: haskell: 15,964; sh: 59; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export CABAL_PACKAGE = ShellCheck

ifeq (yes,$(shell test -e /usr/bin/ghci && echo yes))
# https://github.com/haskell/cabal/issues/2398
ifeq (yes,$(shell ghc --info | grep -q 'Support SMP.*YES' && echo yes))
export DEB_ENABLE_TESTS = yes
endif
endif

ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
export DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc--param -optcggc-min-expand=10"
endif

execute_after_dh_auto_build-arch:
	pandoc -s -f markdown-smart -t man shellcheck.1.md -o shellcheck.1

%:
	dh $@