File: rules

package info (click to toggle)
golang-github-jochenvg-go-udev 0.0~git20240801.b65ed64-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 144 kB
  • sloc: makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/make -f

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

# The tests for this package require that /dev/zero be initialized by
# udev, otherwise they will fail. So, only run them if udevd is running.
# I don't know if there's a nicer way to do this check that will work
# reliably across containers, chroots, and physical hardware.
override_dh_auto_test:
	if command -v udevadm >/dev/null 2>&1; then if udevadm info -n /dev/zero >/dev/null 2>&1; then dh_auto_test; fi; fi