| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DH_GOLANG_EXCLUDESscip-makefile . . . DH_GOLANG_EXCLUDES. := demos |
| 4 | |
| 5 | IMPORTPATHscip-makefile . . . IMPORTPATH. := github.com/korandiz/v4l |
| 6 | BUILDDIRscip-makefile . . . BUILDDIR. := $(CURDIRscip-makefile . . . CURDIR.)/_build/src/$(IMPORTPATHscip-makefile . . . IMPORTPATH.) |
| 7 | |
| 8 | %scip-makefile . . . `%`/: |
| 9 | dh $@scip-makefile . . . `@`. --builddirectory=_build --buildsystem=golang |
| 10 | |
| 11 | execute_before_dh_auto_buildscip-makefile . . . execute_before_dh_auto_build/: |
| 12 | gcc -o $(CURDIRscip-makefile . . . CURDIR.)/_build/arch_go $(CURDIRscip-makefile . . . CURDIR.)/generate/arch_go.c |
| 13 | $(CURDIRscip-makefile . . . CURDIR.)/_build/arch_go > $(BUILDDIRscip-makefile . . . BUILDDIR.)/arch.go |
| 14 | |
| 15 | override_dh_auto_testscip-makefile . . . override_dh_auto_test/: |
| 16 | # fmt/yuyv tests fail due to in 10min timeouts in most archs. |
| 17 | DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDESscip-makefile . . . DH_GOLANG_EXCLUDES.) fmt/yuyv" dh_auto_test |