File: rules

package info (click to toggle)
kcptun 20190109+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 312 kB
  • sloc: sh: 104; makefile: 12
file content (16 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

override_dh_auto_install:
	cd obj-$(DEB_TARGET_GNU_TYPE); \
	for bin in server client; do \
		mv bin/$$bin bin/kcptun-$$bin; \
		help2man -N -n "Simple UDP Tunnel Based On KCP" \
			--version-string="$(DEB_VERSION)" \
			-o kcptun-$$bin.1 bin/kcptun-$$bin; \
	done
	dh_auto_install

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