File: rules

package info (click to toggle)
golang-google-genproto 0.0~git20200413.b5235f6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports, experimental
  • size: 50,816 kB
  • sloc: sh: 49; makefile: 12
file content (16 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

BUILDDIR := $(CURDIR)/build
PACKAGES := $(shell find googleapis protobuf -name '*.proto' \
    -exec dirname {} \; | sort -u)

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

override_dh_auto_configure:
	dh_auto_configure
	set -e; \
        cd $(BUILDDIR)/src; \
	for dir in $(PACKAGES); do \
	    protoc --go_out=plugins=grpc:. google.golang.org/genproto/$$dir/*.proto; \
	done