File: rules

package info (click to toggle)
seer 1.1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,668 kB
  • sloc: cpp: 2,945; perl: 596; python: 122; makefile: 92; sh: 43
file content (36 lines) | stat: -rwxr-xr-x 1,152 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# DH_VERBOSE := 1

include /usr/share/dpkg/default.mk
include /usr/share/dpkg/architecture.mk
export CPATH := /usr/include/hdf5/serial

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CMAKE_EXTRA_FLAGS += -DARMA_USE_HDF5=1

override_dh_auto_build:
	dh_auto_build -- LDFLAGS+=-L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial

override_dh_auto_install:
	dh_auto_install -- PREFIX=$(CURDIR)/debian/$(DEB_SOURCE)/usr
	for pl in scripts/*.pl ; do \
	    plbase=`basename $${pl} .pl` ; \
	    sed "s+Usage: ./$${plbase}.pl+Usage: $${plbase}+" $${pl} > $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/$${plbase} ; \
	done
	# Fix broken usage hint:
	sed -i "s+Usage: ./hits_to_matrix.pl+Usage: reformat_output+" $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/reformat_output

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	if dh_auto_test ; then echo Test passed ; else echo '****************************** TEST FAILED.  Please contact upstream *******************************' ; fi
endif

override_dh_fixperms:
	dh_fixperms
	find debian -name Makefile -exec chmod -x \{\} \;
	find debian -name "*.fa" -exec chmod -x \{\} \;