File: rules

package info (click to toggle)
knxd 0.14.46-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,740 kB
  • sloc: cpp: 23,590; ansic: 4,881; pascal: 3,728; makefile: 511; sh: 270; ruby: 132; java: 65; python: 40
file content (52 lines) | stat: -rwxr-xr-x 1,474 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=-format
export DEB_BUILD_HARDENING_FORMAT=0


# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh $@ 

override_dh_clean:
	dh_clean
	rm -f debian/knxd.install

override_dh_auto_configure: configure install-sh
	dh_auto_configure -- --enable-usb --enable-groupcache --enable-ft12 --enable-tpuart --enable-dummy --libexecdir=/usr/lib --enable-dependency-tracking --enable-silent-rules

configure install-sh: configure.ac
	sh bootstrap.sh

override_dh_install: debian/knxd.install debian/knxd.socket debian/knxd.service
	dh_install
	dh_systemd_enable || true
	dh_systemd_start || true

#override_dh_installudev: debian/knxd.udev
#	# install the udev file to /etc since it needs to be modified
#	mkdir -p debian/knxd/usr/share/doc/knxd/examples
#	install debian/knxd.udev debian/knxd/usr/share/doc/knxd/examples/70-knxd.rules.sample

override_dh_compress:
	dh_compress -X.rst

debian/knxd.install: debian/knxd.install.in
	cp $^ $@
	grep -qs 'HAVE_SYSTEMD_TRUE.*#' config.status || cat $@.systemd >> $@

debian/knxd.socket: systemd/knxd.socket
	test -e $^ && cp $^ $@
debian/knxd.service: systemd/knxd.service
	test -e $^ && cp $^ $@
systemd/knxd.socket systemd/knxd.service:
	$(MAKE) -C systemd

override_dh_auto_test:
	bash tools/test.sh || true
	# test run is not authoritative because it uses multicast