File: rules

package info (click to toggle)
bustle 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 708 kB
  • sloc: haskell: 4,259; ansic: 1,159; makefile: 108; sh: 8
file content (25 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download | duplicates (4)
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
# export DH_VERBOSE=1
#

THREADED := $(if $(wildcard /usr/lib/*/libHSrts_thr.a),,-f-threaded)

%:
	dh $@

clean:
	dh $@
	[ ! -f ./setup ] || ./setup clean
	rm -rf bustle-pcap dist setup Setup.hi Setup.o GetText.o GetText.hi

override_dh_auto_configure:
	ghc -package Cabal Setup.hs -o setup
	./setup configure --prefix /usr $(THREADED) --datasubdir=bustle

override_dh_auto_build:
	$(MAKE)
	./setup build

override_dh_install:
	./setup copy --destdir debian/tmp
	dh_install