File: rules

package info (click to toggle)
poa 2.0+20060928-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 480 kB
  • sloc: ansic: 4,644; xml: 276; makefile: 91; perl: 35; sh: 16
file content (35 lines) | stat: -rwxr-xr-x 831 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

DB2MAN=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl
XP=xsltproc \
	-o debian/ \
	-''-nonet

$(DEB_SOURCE).1: debian/$(DEB_SOURCE).1.xml
	$(XP) $(DB2MAN) $<

override_dh_auto_build:
	dh_auto_build -- poa

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_test:
	tmpfile=`mktemp` ; \
	./$(DEB_SOURCE) -read_fasta multidom.seq -clustal $$tmpfile -v blosum80.mat ; \
	if cmp $$tmpfile $(CURDIR)/debian/test/multidom.clustal ; then \
	    echo "Test passed" ; \
	    rm -f $$tmpfile ; \
	else \
	    echo "TEST FAILED!!!" ; \
	    echo "File $$tmpfile is different from $(CURDIR)/multidom.clustal" ; \
	    exit 1 ; \
	fi
endif