aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/rules
blob: b52fa270aa5293580ab89766ef33ad76fd8d5dcc (plain)
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
#!/usr/bin/make -f

# these rules originally written by Joey Hess for hothasktags package

%:
	dh $@

override_dh_auto_configure:
	ghc --make Setup
	./Setup configure

override_dh_auto_build:
	./Setup build
	pod2man --center="User Commands" --section=1 \
		pandoc-citeproc-preamble.1.pod > pandoc-citeproc-preamble.1

override_dh_gencontrol:
	echo "haskell:Depends=$(shell . /usr/share/haskell-devscripts/Dh_Haskell.sh; hashed_dependency ghc dev pandoc-types)" \
		>>debian/pandoc-citeproc-preamble.substvars
	dh_gencontrol

override_dh_auto_clean:
	if [ -x Setup ]; then ./Setup clean; fi
	rm -f Setup Setup.o Setup.hi pandoc-citeproc-preamble.1

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