File: rules

package info (click to toggle)
golang-mvdan-sh 3.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,260 kB
  • sloc: javascript: 213; sh: 63; makefile: 10
file content (16 lines) | stat: -rwxr-xr-x 417 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export DH_GOLANG_INSTALL_EXTRA := syntax/canonical.sh
export DH_GOLANG_EXCLUDES := cmd/gosh _js

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

override_dh_auto_build:
	dh_auto_build -- -ldflags "-X main.version=$(DEB_VERSION_UPSTREAM)"
	scdoc < cmd/shfmt/shfmt.1.scd > debian/shfmt.1

execute_after_dh_auto_clean:
	rm -rf debian/shfmt.1