File: rules

package info (click to toggle)
datamash 1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 9,688 kB
  • sloc: ansic: 37,696; sh: 8,480; perl: 4,049; makefile: 243; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 917 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
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_build:
	for f in lib/iconv_open*.gperf; do \
		gperf $$f > `echo $$f | sed 's/gperf/h/'`; \
	done


# Ignore a few tests on !x86 32bit.  This addresses bug #982869 to make
# it non-RC but upstream needs to clarify the issue.
ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), armel armhf mipsel hppa powerpc))
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	sed -i~ -e '/^ # Conversion Errors/,/# on a different architecture, would printf(%Lg) print something else?/d' tests/decorate-errors.pl
	dh_auto_test
	mv tests/decorate-errors.pl~ tests/decorate-errors.pl
endif
endif

override_dh_auto_clean:

override_dh_fixperms:
	dh_fixperms
	rm -rf $(TMP)/usr/share/datamash