File: rules

package info (click to toggle)
smalt 0.7.6-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 72,824 kB
  • sloc: ansic: 26,340; sh: 3,826; python: 1,472; makefile: 323
file content (33 lines) | stat: -rwxr-xr-x 892 bytes parent folder | download
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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# autoreconf is needed to make the patch to test/Makefile.am effective
%:
	dh $@

override_dh_autoreconf:
	echo "Do nothing - fails because auf broken upstream autoconf stuff"

override_dh_auto_configure:
	dh_auto_configure -- CONFIG_SHELL=/bin/bash

override_dh_auto_install:
	# upstream install does install more files than needed

override_dh_install-indep:
	dh_install
	# fix path to smalt executable in examples
	for py in `ls test/*.py` ; do \
	    sed 's#PROGNAM = "../src/smalt"#PROGNAM = "/usr/bin/smalt"#' $${py} > debian/smalt-examples/usr/share/doc/smalt/$${py} ; \
	done

override_dh_auto_clean:
	dh_auto_clean
	rm -rf test/*.pyc misc/*.pyc test/tmp
	find . -type d -name __pycache__ | xargs rm -rf

override_dh_auto_build-arch:
	dh_auto_build -a
	make -C test sequenceReverseComplement_test