File: rules

package info (click to toggle)
shoelaces 1.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 916 kB
  • sloc: python: 144; sh: 99; javascript: 88; makefile: 35
file content (20 lines) | stat: -rwxr-xr-x 477 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

# Disable cgo to avoid lintian warn: 'hardening-no-fortify-functions'
export CGO_ENABLED = 0

override_dh_auto_install:
	dh_auto_install -- --no-source

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

override_dh_auto_clean:
	dh_auto_clean -O--buildsystem=golang
	rm -f docs/shoelaces.8

override_dh_auto_build:
	dh_auto_build -O--buildsystem=golang -- \
		-buildmode=pie \
		-ldflags="-extldflags -Wl,-z,now"
	scdoc < docs/shoelaces.8.scd > docs/shoelaces.8