#!/usr/bin/make -f

# Every module of the repository, so that a module-aware go list does not
# stop at the main module. internal/tools is a build-time only module.
DH_GOLANG_MODULES := \
	go.opentelemetry.io/proto \
	go.opentelemetry.io/proto/otlp \
	go.opentelemetry.io/proto/otlp/collector/profiles/v1development \
	go.opentelemetry.io/proto/otlp/profiles/v1development \
	go.opentelemetry.io/proto/slim/otlp \
	go.opentelemetry.io/proto/slim/otlp/collector/profiles/v1development \
	go.opentelemetry.io/proto/slim/otlp/profiles/v1development

export DH_GOLANG_BUILDPKG := $(addsuffix /...,$(DH_GOLANG_MODULES))
export DH_GOLANG_EXCLUDES := internal/tools

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