| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_GOLANG_EXCLUDES := google/longrunning |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=golang --with=golang --builddirectory=_build |
| 7 |
|
| 8 |
override_dh_clean: |
| 9 |
dh_clean |
| 10 |
-find . -type f -name '*.pb.go' -delete -printf 'removed %p\n' ## delete generated .pb.go files |
| 11 |
|
| 12 |
override_dh_auto_build: |
| 13 |
## build compiler: |
| 14 |
DH_GOPKG="github.com/gogo/googleapis/protoc-gen-gogogoogleapis" dh_auto_build -v |
| 15 |
## generate .pb.go files: |
| 16 |
PATH="$(CURDIR)/_build/bin:$${PATH}" $(MAKE) regenerate |
| 17 |
## install generated .pb.go files into build directory: |
| 18 |
dh_auto_configure |
| 19 |
## build: |
| 20 |
dh_auto_build |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_auto_install -- --no-binaries |