File: rules

package info (click to toggle)
osmo-trx 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,028 kB
  • sloc: cpp: 14,569; ansic: 5,963; makefile: 644; asm: 329; sh: 128; xml: 79
file content (65 lines) | stat: -rwxr-xr-x 1,754 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/make -f
#DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk

CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")

#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf


override_dh_auto_clean:
	dh_auto_clean
	$(RM) tests/testsuite tests/package.m4 tests/testsuite.log .tarball-version tests/testsuite.dir/at-job-fifo
	$(RM) CommonLibs/Makefile
	$(RM) GSM/Makefile
	$(RM) Makefile
	$(RM) Transceiver52M/Makefile
	$(RM) Transceiver52M/arch/Makefile
	$(RM) Transceiver52M/arch/arm/Makefile
	$(RM) Transceiver52M/arch/common/Makefile
	$(RM) Transceiver52M/arch/x86/Makefile
	$(RM) Transceiver52M/device/Makefile
	$(RM) Transceiver52M/device/bladerf/Makefile
	$(RM) Transceiver52M/device/common/Makefile
	$(RM) Transceiver52M/device/ipc/Makefile
	$(RM) Transceiver52M/device/lms/Makefile
	$(RM) Transceiver52M/device/uhd/Makefile
	$(RM) Transceiver52M/device/usrp1/Makefile
	$(RM) Transceiver52M/grgsm_vitac/.dirstamp
	$(RM) config.h
	$(RM) config.log
	$(RM) config.status
	$(RM) contrib/Makefile
	$(RM) contrib/osmo-trx.spec
	$(RM) contrib/systemd/Makefile
	$(RM) doc/Makefile
	$(RM) doc/examples/Makefile
	$(RM) doc/manuals/Makefile
	$(RM) libtool
	$(RM) stamp-h1
	$(RM) tests/CommonLibs/Makefile
	$(RM) tests/Makefile
	$(RM) tests/Transceiver52M/Makefile
	$(RM) tests/atconfig
	$(RM) utils/Makefile

override_dh_autoreconf:
	echo $(DEB_VERSION_UPSTREAM) > .tarball-version
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-lms

override_dh_auto_test:
	dh_auto_test
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	./debian/autotest/autotest
endif

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start