mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 17:38:45 -05:00
24 lines
588 B
Makefile
Executable File
24 lines
588 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/default.mk
|
|
|
|
BUILDDIR=_build
|
|
|
|
%:
|
|
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang
|
|
|
|
execute_after_dh_auto_configure:
|
|
go mod vendor
|
|
cp -r vendor/* _build/src
|
|
|
|
override_dh_auto_build:
|
|
DH_GOPKG="github.com/v2fly/v2ray-core/v5/main" dh_auto_build -- -ldflags "-s -w"
|
|
cd $(BUILDDIR); mv bin/main bin/v2ray
|
|
DH_GOPKG="github.com/v2fly/v2ray-core/v5/infra/control/main" dh_auto_build -- -ldflags "-s -w" -tags confonly
|
|
cd $(BUILDDIR); mv bin/main bin/v2ctl
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- --no-source
|
|
|
|
override_dh_auto_test:
|