File: rules

package info (click to toggle)
golang-gitaly-proto 0.123.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 276 kB
  • sloc: ruby: 234; makefile: 70
file content (36 lines) | stat: -rwxr-xr-x 1,298 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
35
36
#!/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

%:
	# Skip building golang temporarily https://gitlab.com/gitlab-org/gitaly/issues/1427 (using embedded copy in gitaly)
	dh $@  --buildsystem=golang --with=golang --package=golang-gitaly-proto-dev
	dh $@  --buildsystem=ruby --with=ruby --package=ruby-gitaly

override_dh_auto_configure:
	mkdir -p go/gitalypb
	_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 ruby/lib/gitaly/*_pb.rb
	rm -rf go/gitalypb
	dh_auto_clean -O--buildsystem=golang -O--package=golang-gitaly-proto-dev
	dh_auto_clean -O--buildsystem=ruby