File: rules

package info (click to toggle)
lcrq 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,868 kB
  • sloc: ansic: 11,513; sh: 3,130; makefile: 338
file content (30 lines) | stat: -rwxr-xr-x 867 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
26
27
28
29
30
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-O3 -funroll-loops -ffast-math -DNDEBUG

ABI=$(shell awk '/PACKAGE_ABIVERS,/{print $$2}' configure.ac | sed -e "s,.$$,,g")

%:
	dh $@

override_dh_auto_test:
	dh_auto_test --no-parallel -- speedtest

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr

override_dh_install:
	dh_install -pliblcrq$(ABI) usr/lib/liblcrq.so.* usr/lib/$(DEB_HOST_MULTIARCH)
	dh_install -pliblcrq$(ABI) usr/share
	dh_install -pliblcrq-dev usr/lib/liblcrq.so usr/lib/$(DEB_HOST_MULTIARCH)
	dh_install -pliblcrq-dev usr/include

override_dh_installdocs:
	dh_installdocs -pliblcrq-dev
	dh_installdocs -pliblcrq$(ABI) README.md

override_dh_auto_clean:
	dh_auto_clean
	# Remove leftover cruft: https://bugs.debian.org/1048192
	rm -vf config.log config.status doc/Makefile examples/Makefile