File: rules

package info (click to toggle)
fastaq 3.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,332 kB
  • sloc: python: 3,958; makefile: 24; xml: 13; perl: 9; sh: 8
file content (31 lines) | stat: -rwxr-xr-x 786 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
#!/usr/bin/make -f

export DH_VERBOSE := 1
export PYBUILD_NAME=fastaq

mandir := $(CURDIR)/debian/man
debfolder := $(CURDIR)/debian

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

override_dh_auto_build:
	dh_python3
	dh_auto_build
	mkdir $(CURDIR)/doc
	cd $(CURDIR)/doc

override_dh_auto_clean:
	rm -rf build .pybuild doc pyfastaq.egg-info
	find . -name __pycache__ | xargs rm -rf
	rm -rf $(mandir)

override_dh_installman:
	mkdir -p $(mandir)
	PYTHONPATH=. help2man -N -o debian/man/fastaq.1 \
	  -n 'FASTA and FASTQ file manipulation tools' \
	  --no-discard-stderr \
	  --version-string=`PYTHONPATH=. scripts/fastaq version` scripts/fastaq
	sed -i 's/.SH DESCRIPTION/.SH DESCRIPTION\\n.nf/' debian/man/fastaq.1
	scripts/fastaq 2>&1 | tail -n +13 | debian/make_man
	dh_installman --