File: rules

package info (click to toggle)
golang-gopkg-gorethink-gorethink.v3 3.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,464 kB
  • sloc: python: 1,382; makefile: 15; sh: 9
file content (24 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_ALL := 0
export DH_GOLANG_GO_GENERATE := 1
export DH_GOLANG_EXCLUDES := internal

override_dh_clean:
	dh_clean
	-find . -type f -name '*.pb.go' -delete -printf 'removed %p\n'            ## delete generated .pb.go files
	
	# RethinkDB tests are removed because RethinkDB not yet packaged.
	$(RM) -r internal/reql_tests

override_dh_auto_test:
	# Most tests are disabled because they require RethinkDB,
	# which is not yet packaged in Debian.
	export DH_GOLANG_EXCLUDES=" \
	  gopkg.in/gorethink/gorethink.v3$$ \
	  gopkg.in/gorethink/gorethink.v3/internal/reql_tests \
	" && \
	dh_auto_test

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