File: rules

package info (click to toggle)
tiup 1.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,384 kB
  • sloc: sh: 1,988; makefile: 138; sql: 16
file content (20 lines) | stat: -rwxr-xr-x 564 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 DH_VERBOSE = 1

# Generic hardening of binaries
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DH_GOLANG_INSTALL_EXTRA := embed/examples/ embed/templates/

override_dh_auto_test:
	@echo "Skipping post-build Go tests because of too many failures"

override_dh_auto_install:
	dh_auto_install -- --no-source
	(cd debian/tiup/usr/bin/ && for x in *; do mv $$x tiup-$$x; done; mv tiup-tiup tiup)

%:
	dh $@ --builddirectory=debian/_build/upstream --buildsystem=golang