File: rules

package info (click to toggle)
golang-github-naoina-toml 0.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 260 kB
  • ctags: 343
  • sloc: makefile: 26
file content (23 lines) | stat: -rwxr-xr-x 709 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
#!/usr/bin/make -f
# -*- makefile -*-

TMP     = $(CURDIR)/debian/$(PACKAGE)

export DH_GOPKG := github.com/naoina/toml
export DH_GOLANG_INSTALL_ALL := 1

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

override_dh_auto_install:
	dh_auto_install
	rm --verbose $(TMP)/*/usr/share/gocode/src/$(DH_GOPKG)/LICENSE
	rm --verbose $(TMP)/*/usr/share/gocode/src/$(DH_GOPKG)/Makefile
	rm --verbose $(TMP)/*/usr/share/gocode/src/$(DH_GOPKG)/README.md
	rm --verbose $(TMP)/*/usr/share/gocode/src/$(DH_GOPKG)/.travis.yml

override_dh_auto_configure:
	dh_auto_configure
	# generate our own parse.peg.go
	rm _build/src/$(DH_GOPKG)/parse.peg.go
	peg-go -inline -switch _build/src/$(DH_GOPKG)/parse.peg