Makefile 403 B

123456789101112131415161718
  1. .PHONY: build-proxy format build-proxy-cmd
  2. PROXY_BIN = http-wokou
  3. PROXY_CMD = wokou-cmd
  4. build-proxy:
  5. mkdir -p ./build/linux/$(PROXY_BIN) && go build -o ./build/linux/$(PROXY_BIN)/$(PROXY_BIN) ./cmd/$(PROXY_BIN)/$(PROXY_BIN).go
  6. build-proxy-cmd:
  7. mkdir -p ./build/linux/$(PROXY_CMD) && go build -o ./build/linux/$(PROXY_CMD)/$(PROXY_CMD) ./cmd/$(PROXY_CMD)/$(PROXY_CMD).go
  8. format:
  9. go fmt ./...