seaweedfs/Makefile
Chris Lu bb839ba268 fix
2016-06-05 10:57:14 -07:00

23 lines
379 B
Makefile

BINARY = weed/weed
GO_FLAGS = #-v
SOURCE_DIR = ./weed/
all: build
.PHONY : clean deps build linux
clean:
go clean -i $(GO_FLAGS) $(SOURCE_DIR)
rm -f $(BINARY)
deps:
go get $(GO_FLAGS) -d $(SOURCE_DIR)
build: deps
go build $(GO_FLAGS) -o $(BINARY) $(SOURCE_DIR)
linux: deps
mkdir -p linux
GOOS=linux GOARCH=amd64 go build $(GO_FLAGS) -o linux/$(BINARY) $(SOURCE_DIR)