Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
4 export PYBUILD_NAME=ariba
5
6 ifneq ($(shell py3versions -d),$(shell py3versions -s))
7 export PYBUILD_TEST_ARGS_$(filter-out $(shell py3versions -d),$(shell py3versions -s))=-k "not test_load_fasta_files_and_write_clusters_file"
8 endif
9
10
11 mandir := $(CURDIR)/debian/man
12 debfolder := $(CURDIR)/debian
13
14 %:
15 dh $@ --buildsystem=pybuild
16
17 execute_before_dh_auto_clean:
18 rm -rf $(mandir)
19
20 execute_before_dh_installman:
21 mkdir -p $(mandir)
22 asciidoctor -a docdate='' -b manpage -o $(mandir)/ariba.1 $(debfolder)/ariba.1.adoc
23
24 # Normalize timestamps of test data files modified during test runs (reproducibility fix)
25 execute_after_dh_fixperms:
26 find debian/ariba -path '*/pubmlst_ref_prepare.test_load_fa_and_clusters.in/gene*.tfa' \
27 -printf 'Normalizing timestamp: %p\n' \
28 -exec touch --date="@$(SOURCE_DATE_EPOCH)" {} +