File: rules

package info (click to toggle)
clustalo 1.2.4-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,884 kB
  • sloc: ansic: 19,243; cpp: 14,513; sh: 10,040; makefile: 147
file content (63 lines) | stat: -rwxr-xr-x 1,736 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk
ifneq (,$(filter $(DEB_BUILD_ARCH), mipsel s390x))
export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS | sed 's/-O[1-9]//') -O0
export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS | sed 's/-O[1-9]//') -O0
endif

%:
	dh $@

override_dh_auto_configure:
	cp -a src/clustal-omega-config.h src/clustal-omega-config.h~
ifneq (,$(filter mipsel ,$(DEB_BUILD_ARCH)))
	dh_auto_configure -- --enable-debug --without-openmp
else
	dh_auto_configure
endif

override_dh_auto_build-indep:
	# nothing to do here

override_dh_auto_test-indep:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "Do not run build time test"
endif

override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test -a
	# Run additional test from python-biopython package to verify that
	# this will work as well
	src/clustalo -i debian/tests/biopython_testdata/f002 --guidetree-out temp_test.dnd -o temp_test.aln --outfmt clustal --force
	rm temp_test.aln  temp_test.dnd
endif

override_dh_auto_install-arch:
	dh_auto_install -a
	rm -rf debian/tmp/usr/lib/pkgconfig
	rm -f debian/tmp/usr/lib/*/libclustalo.la
	mv debian/tmp/usr/include debian/libclustalo-dev/usr
	mv debian/tmp/usr/lib debian/libclustalo-dev/usr
	mv debian/tmp/usr/bin debian/clustalo/usr

override_dh_auto_install-indep:
	# Generate doxygen doc
	mkdir -p doc
	doxygen Doxyfile
	find doc -name "*.md5" -delete

override_dh_clean:
	if [ -e src/clustal-omega-config.h~ ] ; then \
	  mv src/clustal-omega-config.h~ src/clustal-omega-config.h ; \
	fi
	dh_clean
	rm -f  _configs.sed
	rm -rf doc