File: rules

package info (click to toggle)
probabel 0.5.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,680 kB
  • sloc: cpp: 6,357; sh: 2,355; ansic: 1,676; makefile: 934; asm: 284; perl: 263; awk: 47
file content (54 lines) | stat: -rwxr-xr-x 1,652 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

# DH_VERBOSE := 1

BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq ($(DEB_HOST_ARCH),arm64)
  export DEB_CXXFLAGS_MAINT_APPEND = -march=armv8-a+nosimd
endif

include /usr/share/dpkg/default.mk

# Location of the example files, will be converted to the
# probabel-examples package
DEBEXAMPLES:=$(DEB_SOURCE)-examples

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules --with-eigen-include-path=/usr/include/eigen3

override_dh_installdocs-indep:
	dh_installdocs -i

override_dh_installdocs-arch:
	dh_installdocs -a
	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/COPYING
	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/INSTALL
	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/LICENSE
	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/ChangeLog

override_dh_installchangelogs:
	dh_installchangelogs doc/ChangeLog

override_dh_install-arch:
	dh_install -a
	rm debian/$(DEB_SOURCE)/usr/bin/probabel.pl
	mv debian/$(DEB_SOURCE)/etc/probabel_config.cfg.example debian/$(DEB_SOURCE)/etc/probabel_config.cfg

ifeq ($(BUILDARCH),$(filter $(BUILDARCH), mips s390x hppa powerpc ppc64 ppc64el sparc64 ))
# On big endian architectures the tests are failing due to
# some binary format output that is compared with a file that
# was created on a low endian architecture and those files
# are dependent from the architecture (with no influence on
# the final result.  See
#   https://github.com/GenABEL-Project/ProbABEL/issues/45
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test || true
endif
endif