Skip to content
Snippets Groups Projects
Commit 8cf6e302 authored by onlyjob's avatar onlyjob :sleeping:
Browse files

rules: re-build .pb.go file(s) (Closes: #846741).

parent 2308e116
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,17 @@ export DH_GOLANG_INSTALL_ALL := 1
%:
dh $@ --buildsystem=golang --with=golang,bash-completion --builddirectory=_build
PB_GO_FILES = $(patsubst %.proto, %.pb.go, $(wildcard */*/*.proto))
$(PB_GO_FILES):
protoc -I "$(dir $@)" --go_out=plugins=grpc:$(dir $@) $(@:.pb.go=.proto)
override_dh_clean:
dh_clean
dh_clean $(PB_GO_FILES)
## Remove Files-Excluded (when built from checkout or non-DFSG tarball):
$(RM) -rv `perl -0nE 'say $$1 if m{^Files\-Excluded\:\s*(.*?)(?:\n\n|Files:|Comment:)}sm;' debian/copyright`
-find vendor -mindepth 1 -type d -empty -delete -printf 'removed %p\n'
override_dh_auto_configure:
override_dh_auto_configure: $(PB_GO_FILES)
dh_auto_configure
$(RM) -rvf _build/src/src/$(DH_GOPKG)
mkdir -p _build/src/src/$(DH_GOPKG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment