mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-05 00:47:51 -05:00
7c1ab06206
* remove v2ctl, wv2ray * remove v2ctl, wv2ray build scripts * remove infra/control/main * remove !confonly flag * remove ctlcmd package * remove Confgi.Override func * move commands package into main
26 lines
521 B
Makefile
Executable File
26 lines
521 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" -tags $(DEB_VERSION_UPSTREAM)
|
|
cd $(BUILDDIR); mv bin/main bin/v2ray
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- --no-source
|
|
|
|
override_dh_auto_test:
|