File: rules

package info (click to toggle)
patat 0.15.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,196 kB
  • sloc: haskell: 4,120; makefile: 86; xml: 22; sh: 17
file content (38 lines) | stat: -rwxr-xr-x 1,058 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
#!/usr/bin/make -f

# these rules originally written by Joey Hess for hothasktags package


# Fix exception thrown running tests:
# patat: <stdout>: commitBuffer: invalid argument (invalid character)
export LANG=C.UTF-8
export LC_ALL=C.UTF-8

%:
	dh $@

override_dh_auto_configure:
	ghc --make Setup
	./Setup configure

override_dh_auto_build:
	mkdir -p dist/build/patat
	ghc extra/make-man.hs -o dist/build/patat/patat-make-man
	./Setup build
	PATH="$(PATH):dist/build/patat/" patat-make-man >extra/patat.1
	mkdir -p bash-completion/completions
	PATH="$(PATH):dist/build/patat/" patat --bash-completion-script patat >extra/patat.bash-completion
	cp extra/patat.bash-completion bash-completion/completions/patat

override_dh_auto_clean:
	$(MAKE) clean
	if [ -x Setup ]; then ./Setup clean; fi
	rm -f Setup Setup.o Setup.hi

# disable tests for now (goldplate not packaged yet)
override_dh_auto_test:

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