File: rules

package info (click to toggle)
g810-led 0.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 392 kB
  • sloc: cpp: 2,131; sh: 120; makefile: 114; python: 84; xml: 36
file content (22 lines) | stat: -rwxr-xr-x 654 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden

include /usr/share/dpkg/buildtools.mk

%:
	dh $@

override_dh_auto_build:
	make bin-linked CXX=$(CXX)

override_dh_auto_install:
	make setup install-lib install-dev SYSTEMDDIR=/lib/systemd/ DESTDIR=$(CURDIR)/debian/tmp CXX=$(CXX)
	cp udev/g810-led.rules debian/g810-led.udev
	cp systemd/g810-led-reboot.service debian/g810-led.g810-led-reboot.service
	rm -rf debian/tmp/etc
	mkdir -p debian/tmp/usr/share/doc/g810-led/examples

override_dh_installsystemd:
	dh_installsystemd --no-stop-on-upgrade --no-start --name=g810-led-reboot