1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 16:26:02 -04:00
v2fly/release/debian/rules
2021-01-12 10:46:59 +08:00

26 lines
491 B
Makefile
Executable File

#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
BUILDDIR=_build
%:
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang --with=golang
execute_after_dh_auto_configure:
go mod vendor
cp -r vendor/* _build/src
override_dh_auto_clean:
dh_auto_clean
rm -rf vendor
override_dh_auto_build:
DH_GOPKG="v2ray.com/core/main" dh_auto_build -- -ldflags "-s -w"
cd $(BUILDDIR); mv bin/main bin/v2ray
override_dh_auto_install:
dh_auto_install -- --no-source
override_dh_auto_test: