File: rules

package info (click to toggle)
python-gffutils 0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,164 kB
  • sloc: python: 5,557; makefile: 57; sh: 13
file content (66 lines) | stat: -rwxr-xr-x 3,409 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f
SHELL=bash  # needed for the <(echo …) process subsitution temporary file

DH_VERBOSE := 1

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=gffutils
export PYBUILD_TEST_ARGS=--doctest-modules -m 'not slow'
export PYBUILD_TEST_PYTEST=true
export PYBUILD_AFTER_TEST=find . -name tmp.db -delete

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --name="Command line interface for python-gffutils." \
		   gffutils-cli > debian/gffutils-cli.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_fetch \- Fetch IDs") \
		   'gffutils-cli fetch' > debian/gffutils-cli-fetch.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_children \- Fetch children from the database according to ID") \
		   'gffutils-cli children' > debian/gffutils-cli-children.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_parents \- Fetch parents from the database according to ID") \
		   'gffutils-cli parents' > debian/gffutils-cli-parents.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_region \- Returns features within provided genomic coordinates") \
		   'gffutils-cli region' > debian/gffutils-cli-region.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_create \- Create a database") \
		   'gffutils-cli create' > debian/gffutils-cli-create.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_common \- Identify child features in common") \
		   'gffutils-cli common' > debian/gffutils-cli-common.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_clean \- Perform various QC operations to clean a GFF or GTF file") \
		   'gffutils-cli clean' > debian/gffutils-cli-clean.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_sanitize \- Sanitize a GFF file") \
		   'gffutils-cli sanitize' > debian/gffutils-cli-sanitize.1
	PYTHONPATH=$(CURDIR) PATH=$(CURDIR)/gffutils/scripts/:$(PATH) \
		   help2man --version-string=${DEB_VERSION_UPSTREAM} --no-info \
		   --include <(echo -e "[NAME]\ngffutils-cli_rmdups \- Remove duplicates from a GFF file") \
		   'gffutils-cli rmdups' > debian/gffutils-cli-rmdups.1


override_dh_auto_test:
	PATH=$(CURDIR)/gffutils/scripts/:$(PATH) dh_auto_test

override_dh_install:
	dh_install
	find debian -name "*.bak" -delete
	find debian -name "issue_*.db" -delete