File: rules

package info (click to toggle)
golang-github-go-kit-kit 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,368 kB
  • sloc: sh: 65; makefile: 20
file content (28 lines) | stat: -rwxr-xr-x 835 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

export DH_VERBOSE := 1

# Don't compile, test, or install a number of packages that require a big
# number of new dependencies, at least for now.
export DH_GOLANG_EXCLUDES := \
    github.com/go-kit/kit/cmd \
    github.com/go-kit/kit/circuitbreaker \
    github.com/go-kit/kit/examples \
    github.com/go-kit/kit/metrics \
    github.com/go-kit/kit/sd/consul \
    github.com/go-kit/kit/sd/etcd \
    github.com/go-kit/kit/sd/etcdv3 \
    github.com/go-kit/kit/sd/eureka \
    github.com/go-kit/kit/sd/zk \
    github.com/go-kit/kit/transport/awslambda \
    github.com/go-kit/kit/transport/nats

%:
	dh $@ --buildsystem=golang

override_dh_auto_install:
	dh_auto_install
	# Do not install excluded packages.
	for pkg in $(DH_GOLANG_EXCLUDES); do \
	    rm -rf debian/*/usr/share/gocode/src/$$pkg; \
        done