File: rules

package info (click to toggle)
lambda-align 1.0.3-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 788 kB
  • sloc: cpp: 4,653; sh: 70; makefile: 27
file content (35 lines) | stat: -rwxr-xr-x 997 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
34
35
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --builddirectory=build

override_dh_auto_clean:
	rm -f *.1
	dh_auto_clean --

override_dh_install:
	dh_install
	find debian -name "LICENSE*.rst" -delete

override_dh_installman:
	./build/bin/lambda --export-help man \
	  | sed -r 's/(number of threads.*) Default:.*/\1/g' \
	  | sed -r 's/\(Git commit +\)//g' > lambda.1
	./build/bin/lambda_indexer --export-help man \
	  | sed -r 's/(number of threads.*) Default:.*/\1/g' \
	  | sed -r 's/(defaults to working directory.*) Default:.*/\1/g' \
	  | sed -r 's/\(Git commit +\)//g' > lambda_indexer.1
	dh_installman --

override_dh_auto_configure:
	dh_auto_configure -- -DLAMBDA_NATIVE_BUILD=OFF -DLAMBDA_MMAPPED_DB=ON -DCMAKE_BUILD_TYPE=Release

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter amd64 arm64 mips64el ppc64el,$(DEB_BUILD_ARCH)))
	cd build/tests && ctest $(shell nproc)
endif
endif