File: rules

package info (click to toggle)
golang-github-gogo-googleapis 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates, sid, trixie
  • size: 1,128 kB
  • sloc: makefile: 208; sh: 6
file content (23 lines) | stat: -rwxr-xr-x 653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := google/longrunning

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

override_dh_clean:
	dh_clean
	-find . -type f -name '*.pb.go' -delete -printf 'removed %p\n'            ## delete generated .pb.go files

override_dh_auto_build:
	## build compiler:
	DH_GOPKG="github.com/gogo/googleapis/protoc-gen-gogogoogleapis"    dh_auto_build -v
	## generate .pb.go files:
	PATH="$(CURDIR)/_build/bin:$${PATH}" $(MAKE) regenerate
	## install generated .pb.go files into build directory:
	dh_auto_configure
	## build:
	dh_auto_build

override_dh_auto_install:
	dh_auto_install -- --no-binaries