File: rules

package info (click to toggle)
ghc-testsuite 8.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 56,184 kB
  • sloc: haskell: 121,784; makefile: 4,437; python: 1,822; ansic: 1,331; sh: 75; asm: 62; objc: 34; cpp: 16
file content (25 lines) | stat: -rwxr-xr-x 601 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_build:
	cp -al testsuite testsuite-run
	# Does not seem to work:
	# OUTPUT_SUMMARY="$(CURDIR)/debian/ghc-testsuite/usr/share/doc/ghc-testsuite/result.txt"
	make -C testsuite-run \
		SKIPWAY="" \
		fast=YES \
		2>&1 | tee result.txt

override_dh_auto_install:
	mkdir -p debian/ghc-testsuite/usr/share/doc/ghc-testsuite
	cp result.txt "$(CURDIR)/debian/ghc-testsuite/usr/share/doc/ghc-testsuite/result.txt"

override_dh_auto_clean:
	rm -rf testsuite-run
	rm -f result.txt