File: rules

package info (click to toggle)
golang-github-korandiz-v4l 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: ansic: 216; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := demos

IMPORTPATH := github.com/korandiz/v4l
BUILDDIR := $(CURDIR)/_build/src/$(IMPORTPATH)

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

execute_before_dh_auto_build:
	gcc -o $(CURDIR)/_build/arch_go $(CURDIR)/generate/arch_go.c
	$(CURDIR)/_build/arch_go > $(BUILDDIR)/arch.go

override_dh_auto_test:
	# fmt/yuyv tests fail due to in 10min timeouts in most archs.
	DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) fmt/yuyv" dh_auto_test