File: rules

package info (click to toggle)
golang-toml 0.4.1%2Bgit20210923.e0af6a2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,028 kB
  • sloc: makefile: 13; python: 11
file content (22 lines) | stat: -rwxr-xr-x 660 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
#!/usr/bin/make -f
export DH_OPTIONS
export DH_GOPKG := github.com/BurntSushi/toml

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

override_dh_auto_build:
	# Fix build
	# _build/src/github.com/BurntSushi/toml/internal/\
	# toml-test/runner.go:29:12: pattern tests/*: \
	# no matching files found
	cp -rf $(CURDIR)/internal/toml-test/tests \
		$(CURDIR)/_build/src/$(DH_GOPKG)/internal/toml-test/.
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	# Don't install test binaries
	cd $(CURDIR)/debian/golang-github-burntsushi-toml-dev/ && \
		rm -rf usr/bin && \
		rm -rf usr/share/gocode/src/$(DH_GOPKG)/internal/toml-test/tests