File: rules

package info (click to toggle)
tnseq-transit 2.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,384 kB
  • sloc: python: 11,317; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 631 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python2 --buildsystem=pybuild

override_dh_install:
	dh_install
	mv debian/$(DEB_SOURCE)/usr/bin/tpp debian/$(DEB_SOURCE)/usr/bin/transit-tpp

# Upstream tarball contains a dangling symlink to local data file - hack around this
override_dh_auto_configure:
	mkdir -p tests_invalid_data
	mv tests/H37Rv.fna tests_invalid_data
	dh_auto_configure

override_dh_auto_clean:
	if [ -e tests_invalid_data/H37Rv.fna ] ; then \
	    mv tests_invalid_data/H37Rv.fna tests ; \
	    rmdir tests_invalid_data ; \
	fi
	dh_auto_clean