File: rules

package info (click to toggle)
golang-github-linuxdeepin-go-dbus-factory 1.9.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,864 kB
  • sloc: xml: 11,754; makefile: 35; sh: 13
file content (20 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export GOCACHE = /tmp/gocache
export GOPATH = ${CURDIR}/_build:/usr/share/gocode
export GO111MODULE := off
export DH_GOLANG_INSTALL_ALL := 1
BUILD_DIR := ${CURDIR}/_build/src/github.com/linuxdeepin/go-dbus-factory

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

execute_after_dh_auto_configure:
	cd ${BUILD_DIR} && make bin && ./gen.sh && \
	find . -type f -name "generator" -delete

	find ${BUILD_DIR} -type f \( -name "README.md" -or -name "CHANGELOG.md" \) -delete
	find ${BUILD_DIR} -type d -name "docs" -exec rm -r {} +

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.md