File: rules

package info (click to toggle)
golang-gitaly-proto 1.37.0+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 372 kB
  • sloc: ruby: 216; makefile: 93
file content (34 lines) | stat: -rwxr-xr-x 1,165 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
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

export GOPATH=/usr
export DH_RUBY = --gem-install
export DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR = debian/ruby-gitaly
export GEM2DEB_TEST_RUNNER = --check-dependencies

%:
	dh $@  --buildsystem=golang --with=golang --package=golang-gitaly-proto-dev
	dh $@  --buildsystem=ruby --with=ruby --package=ruby-gitaly

override_dh_auto_configure:
	_support/generate-from-proto
	dh_auto_configure -O--buildsystem=golang -O--package=golang-gitaly-proto-dev
	dh_auto_configure -O--buildsystem=ruby -O--package=ruby-gitaly

override_dh_auto_build:
	dh_auto_build -O--buildsystem=ruby -O--package=ruby-gitaly

override_dh_auto_test:
	dh_auto_test -O--buildsystem=ruby -O--package=ruby-gitaly

override_dh_auto_install:
	dh_auto_install -O--buildsystem=golang -O--package=golang-gitaly-proto-dev --destdir=debian/golang-gitaly-proto-dev
	dh_auto_install -O--buildsystem=ruby -O--package=ruby-gitaly --destdir=debian/ruby-gitaly

override_dh_golang:

override_dh_auto_clean:
	rm -rf go/*.pb.go
	rm -rf go/gitalypb/*.pb.go
	rm -rf ruby/lib/gitaly/*_pb.rb
	dh_auto_clean -O--buildsystem=golang -O--package=golang-gitaly-proto-dev
	dh_auto_clean -O--buildsystem=ruby