Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # We want exclude the dummy-discovery and testdata directories from the
4 # built package as they contain a binary program built from the tests.
5 # We will configure them manually instead.
6 export DH_GOLANG_EXCLUDES := dummy-discovery testdata
7 export DH_GOLANG_EXCLUDES_ALL := 1
8
9 BUILDDIR=debian/build
10
11 %:
12 dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang
13
14 execute_after_dh_auto_configure:
15 # Manually copy the dummy-discovery and testdata directories in the builddir.
16 cp -r dummy-discovery testdata $(BUILDDIR)/src/github.com/arduino/pluggable-discovery-protocol-handler