From 50bed220766bdf845fa6ffae04cff9154ca6c7c1 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Mon, 8 Feb 2021 14:35:58 +0800 Subject: [PATCH] Chore: Makefile rename docker -> tun2socks --- Dockerfile | 4 ++-- Makefile | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 20a5e47..5187c8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ COPY . /tun2socks-src RUN apk add --no-cache make git \ && go mod download \ - && make docker \ - && mv ./bin/tun2socks-docker /tun2socks + && make tun2socks \ + && mv ./bin/tun2socks /tun2socks FROM alpine:latest LABEL org.opencontainers.image.source="https://github.com/xjasonlyu/tun2socks" diff --git a/Makefile b/Makefile index 7f578c3..e2521af 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,8 @@ WINDOWS_ARCH_LIST = \ all: linux-amd64 darwin-amd64 windows-amd64 -.PHONY: docker -docker: - $(GO_BUILD) -o $(BINDIR)/$(NAME)-$@ +tun2socks: + $(GO_BUILD) -o $(BINDIR)/$(NAME) darwin-amd64: GOARCH=amd64 GOOS=darwin $(GO_BUILD) -o $(BINDIR)/$(NAME)-$@