File: rules

package info (click to toggle)
elk 3.99.8-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 5,104 kB
  • sloc: ansic: 22,343; lisp: 6,208; makefile: 769; sh: 171; awk: 154; cpp: 92
file content (21 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

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

FAIL_ON_I386_TESTS := check-gc

%:
	dh $@ --with autoreconf

override_dh_auto_install:
	dh_auto_install

	sed -i "s/^dependency_libs.*/dependency_libs=''/" \
	   $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/elk/*.la
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la

override_dh_auto_test:
	# exclude tests known to fail
ifeq ($(BUILDARCH),$(filter $(BUILDARCH), i386 kfreebsd-i386))
	for tst in $(FAIL_ON_I386_TESTS) ; do sed -i "/^native_tests = /s/$${tst}//" test/Makefile ; echo "skipping test $${tst} which is known to fail in i386" ; done
endif