File: rules

package info (click to toggle)
crda 4.14+git20191112.9856751-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 568 kB
  • sloc: ansic: 2,599; makefile: 195; python: 130; sh: 6
file content (38 lines) | stat: -rwxr-xr-x 929 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
36
37
38
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
CC = $(DEB_HOST_GNU_TYPE)-gcc
endif
export CC
export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export LIBDIR = /lib/crda
export LIBEXECDIR = /lib/crda
export LDLIBREG = -Wl,-rpath,$(LIBDIR)
export REG_BIN = /lib/crda/regulatory.bin
export USE_OPENSSL = 1
export RUNTIME_PUBKEY_DIR = /lib/crda/pubkeys
export RUNTIME_PUBKEY_ONLY = 1
export V = $(if $(filter terse,$(DEB_BUILD_OPTIONS)),0,1)
#export DH_VERBOSE = 1

%:
	dh ${@}

override_dh_auto_build:
	dh_auto_build -- all_noverify

override_dh_install:
	dh_install
	install -D -m 755 debian/setregdomain \
		debian/crda/lib/crda/setregdomain
	mkdir -m 755 debian/crda/$(RUNTIME_PUBKEY_DIR)
	install -m 644 pubkeys/*.pem debian/pubkeys/*.pem \
		debian/crda/$(RUNTIME_PUBKEY_DIR)/

override_dh_auto_clean:
	$(MAKE) clean