mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
662915e691
LoadChunkManifest can uncompress buffer move compress.go from storage to operation because of import cycle MakeFile add cross complete command
23 lines
377 B
Makefile
23 lines
377 B
Makefile
BINARY = weed
|
|
|
|
GO_FLAGS = #-v
|
|
SOURCE_DIR = ./go/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)
|