File: rules

package info (click to toggle)
parsinsert 1.04-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 105,628 kB
  • sloc: cpp: 8,678; makefile: 109; sh: 15
file content (43 lines) | stat: -rwxr-xr-x 1,410 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
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f

# Hardening and lack of position independent executable are causing a number of
# errors in parsinsert results when a number of compiler optimizations are
# active.  See #964082 for further details on the issue.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -fPIE
# Also, although -fPIE does help on several platforms, a bunch of architectures
# are still affected by the precision issue.
UNOPTIMIZED_ARCHS := armel armhf mips64el ppc64el hppa ia64 powerpc ppc64 x32
ifneq (,$(filter $(DEB_BUILD_ARCH),$(UNOPTIMIZED_ARCHS)))
export DEB_CXXFLAGS_MAINT_APPEND = -O1
endif


%:
	dh $@

execute_after_dh_auto_build:
	mv ParsInsert parsinsert

override_dh_auto_clean:
	mv parsinsert ParsInsert || true
	dh_auto_clean

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd debian/tests/test_data && \
	$(CURDIR)/parsinsert -d0 -c80 -n1 set1000.fasta -m lanemask.txt -x rdp.taxonomy \
		-l set1000.log -o set1000.results -t core_rdp.ntree \
		-s core_rdp.fasta && \
	cmp -s right_results set1000.results || { \
	    echo "incorrect result" ; \
	    exit 1 ; } && \
	rm -f set1000.results set1000.tree
endif

# Note a manpage was generated using:
#  help2man -N ./parsinsert --version-string=1.04 > debian/parsinsert.1
#  But this was then manually edited, so it is not rebuilt automatically.

override_dh_install:
	dh_install -Xset1000.log