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
|