github.com/v2fly/v2ray-core/v4@v4.45.2/release/debian/rules (about) 1 #!/usr/bin/make -f 2 3 include /usr/share/dpkg/default.mk 4 5 BUILDDIR=_build 6 7 %: 8 dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang 9 10 execute_after_dh_auto_configure: 11 go mod vendor 12 cp -r vendor/* _build/src 13 14 override_dh_auto_build: 15 DH_GOPKG="github.com/v2fly/v2ray-core/v4/main" dh_auto_build -- -ldflags "-s -w" 16 cd $(BUILDDIR); mv bin/main bin/v2ray 17 DH_GOPKG="github.com/v2fly/v2ray-core/v4/infra/control/main" dh_auto_build -- -ldflags "-s -w" -tags confonly 18 cd $(BUILDDIR); mv bin/main bin/v2ctl 19 20 override_dh_auto_install: 21 dh_auto_install -- --no-source 22 23 override_dh_auto_test: