File: rules

package info (click to toggle)
golang-github-arduino-pluggable-discovery-protocol-handler 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 356 kB
  • sloc: makefile: 7
file content (16 lines) | stat: -rwxr-xr-x 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

# We want exclude the dummy-discovery and testdata directories from the
# built package as they contain a binary program built from the tests.
# We will configure them manually instead.
export DH_GOLANG_EXCLUDES := dummy-discovery testdata
export DH_GOLANG_EXCLUDES_ALL := 1

BUILDDIR=debian/build

%:
	dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang

execute_after_dh_auto_configure:
# Manually copy the dummy-discovery and testdata directories in the builddir.
	cp -r dummy-discovery testdata $(BUILDDIR)/src/github.com/arduino/pluggable-discovery-protocol-handler