File: rules

package info (click to toggle)
selint 1.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,948 kB
  • sloc: ansic: 12,163; yacc: 1,149; makefile: 389; lex: 183; sh: 11
file content (30 lines) | stat: -rwxr-xr-x 803 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk  # DEB_HOST_ARCH

export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
  CONFIGURE_ARGS += --without-check
endif


%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-werror $(CONFIGURE_ARGS)

execute_after_dh_auto_test:
ifneq (,$(filter $(DEB_HOST_ARCH), mips64el mipsel armhf))
# Skip the tests requiring valgrind on problematic architectures
# Skip on armhf due to #1100805
	sed -i '/^@test "\(valgrind\|Broken config\)" {/a \	skip' tests/functional/end-to-end.bats
endif
	cd tests/functional/ && bats end-to-end.bats

ifneq (, $(filter cross, $(DEB_BUILD_PROFILES)))
# help2man does not work while cross building
override_dh_clean:
	dh_clean -Xman/selint.1
endif