File: rules

package info (click to toggle)
mbuffer 20200929%2Bds2-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,072 kB
  • sloc: ansic: 4,189; sh: 3,384; makefile: 160
file content (25 lines) | stat: -rwxr-xr-x 660 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
#!/usr/bin/make -f
#
# Build rules for mbuffer, the stream buffering tool

# Aim for the top, adapt if anything should break on the buildds.
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs

D=	debian/mbuffer
ARCH=	$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
MD=	$D/usr/libexec/${ARCH}/mbuffer

override_dh_auto_clean:
	dh_auto_clean -- testcleanup distclean

execute_after_dh_auto_install:
	mkdir -p '${MD}'
	install -c -m 755 -- idev.so tapetest.so have-af '${MD}/'

override_dh_installchangelogs:
	dh_installchangelogs -X ChangeLog
	install -m 644 ChangeLog debian/mbuffer/usr/share/doc/mbuffer/NEWS
	
%:
	dh $@