File: rules

package info (click to toggle)
stylish-haskell 0.6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 304 kB
  • ctags: 1
  • sloc: haskell: 1,932; makefile: 19
file content (32 lines) | stat: -rwxr-xr-x 814 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
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

# these rules originally written by Joey Hess for hothasktags package

%:
	dh $@

override_dh_auto_configure:
	ghc --make Setup
	./Setup configure \
		--datadir=/usr/share/stylish-haskell --datasubdir="" \
		--enable-tests

override_dh_auto_build:
	asciidoctor -d manpage -b manpage debian/stylish-haskell.1.adoc
	./Setup build

override_dh_auto_clean:
	if [ -x Setup ]; then ./Setup clean; fi
	rm -f Setup Setup.o Setup.hi debian/stylish-haskell.1

override_dh_auto_test:
	./Setup test

override_dh_compress:
	# add file that dh_compress somehow misses
	dh_compress debian/stylish-haskell/usr/share/doc/stylish-haskell/README.markdown

override_dh_strip:
	# GHC cannot produce debugging symbols so the -dbgsym package
	# ends up empty, so disable generating it
	dh_strip --no-automatic-dbgsym