File: rules

package info (click to toggle)
corectrl 1.5.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,648 kB
  • sloc: cpp: 42,650; ansic: 174; javascript: 158; makefile: 18; sh: 3
file content (26 lines) | stat: -rwxr-xr-x 715 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
include /usr/share/dpkg/architecture.mk
DEBARCH:=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCatch2_DIR=/usr/lib/cmake/Catch2 \
	-DBUILD_TESTING=ON


override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/corectrl/usr/lib/$(DEBARCH)/corectrl/
	mv debian/corectrl/usr/lib/$(DEBARCH)/libcorectrl.so debian/corectrl/usr/lib/$(DEBARCH)/corectrl/

execute_after_dh_strip:
	patchelf --replace-needed libcorectrl.so /usr/lib/$(DEBARCH)/corectrl/libcorectrl.so debian/corectrl/usr/bin/corectrl

override_dh_dwz:
	@echo "BYE DWZ"