File: rules

package info (click to toggle)
atropos 1.1.24+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,424 kB
  • sloc: python: 13,068; makefile: 220; sh: 214
file content (27 lines) | stat: -rwxr-xr-x 720 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	 \
	dh_auto_test -- --before-test="ln -s $(CURDIR)/tests/cut {build_dir}/tests && ln -s $(CURDIR)/tests/data {build_dir}/tests"
endif

override_dh_install:
	dh_install
	find debian -type d -name __pycache__ | xargs rm -rf
	find debian -type d -name tests       | xargs rm -rf
	find debian -type f -name .adapters -delete

override_dh_auto_clean:
	dh_auto_clean
	rm -rf  .pytest_cache
	rm -rf atropos.egg-info
	rm -f atropos/align/_align.c atropos/commands/trim/_qualtrim.c atropos/io/_seqio.c