github.com/sagernet/sing-tun@v0.3.0-beta.5/Makefile (about)

     1  build:
     2  	GOOS=darwin GOARCH=arm64 go build -v -tags with_gvisor .
     3  	GOOS=ios GOARCH=arm64 go build -v -tags with_gvisor .
     4  	GOOS=linux GOARCH=amd64 go build -v -tags with_gvisor .
     5  	GOOS=linux GOARCH=arm64 go build -v -tags with_gvisor .
     6  	GOOS=linux GOARCH=386 go build -v -tags with_gvisor .
     7  	GOOS=linux GOARCH=arm go build -v -tags with_gvisor .
     8  	GOOS=windows GOARCH=amd64 go build -v -tags with_gvisor .
     9  
    10  fmt:
    11  	@gofumpt -l -w .
    12  	@gofmt -s -w .
    13  	@gci write --custom-order -s standard -s "prefix(github.com/sagernet/)" -s "default" .
    14  
    15  fmt_install:
    16  	go install -v mvdan.cc/gofumpt@latest
    17  	go install -v github.com/daixiang0/gci@latest
    18  
    19  lint:
    20  	GOOS=linux golangci-lint run .
    21  	GOOS=android golangci-lint run .
    22  	GOOS=windows golangci-lint run .
    23  	GOOS=darwin golangci-lint run .
    24  	GOOS=freebsd golangci-lint run .
    25  
    26  lint_install:
    27  	go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
    28  
    29  test:
    30  	go test -v .