mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
20 lines
362 B
Makefile
20 lines
362 B
Makefile
|
NAME=clash
|
||
|
BINDIR=bin
|
||
|
GOBUILD=CGO_ENABLED=0 go build -ldflags '-w -s'
|
||
|
|
||
|
all: linux macos
|
||
|
|
||
|
linux:
|
||
|
GOARCH=amd64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||
|
|
||
|
macos:
|
||
|
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||
|
|
||
|
releases: linux macos
|
||
|
chmod +x $(BINDIR)/$(NAME)-*
|
||
|
gzip $(BINDIR)/$(NAME)-linux
|
||
|
gzip $(BINDIR)/$(NAME)-macos
|
||
|
|
||
|
clean:
|
||
|
rm $(BINDIR)/*
|