File: rules

package info (click to toggle)
kbtin 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,856 kB
  • sloc: ansic: 18,627; perl: 179; sh: 88; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 555 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
#!/usr/bin/make -f
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

ifeq ($(DEB_TARGET_ARCH),armhf)
  export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-stackclash
else
  export DEB_BUILD_MAINT_OPTIONS = hardening=+all
endif

%:
	dh $@

override_dh_auto_configure:
ifneq (,$(findstring ppc64,$(DEB_HOST_ARCH)))
	rm -f 'tests/data/infinite hook send.'*
endif
	dpkg-parsechangelog -SVersion|rev|cut -d- -f2-|rev >VERSION
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install
	tic terminfo.src -o $(CURDIR)/debian/kbtin/usr/share/terminfo