aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortnextday <fw2k4@163.com>2015-12-02 21:27:29 +0800
committertnextday <fw2k4@163.com>2015-12-02 21:27:29 +0800
commit662915e6915d18a9e45b73577f93ef3be6562f4e (patch)
treeef44a0237091e1bc2d395679372b87e682ebbb96 /Makefile
parent520875d45504f0b659de7f4ff656634489100416 (diff)
downloadseaweedfs-662915e6915d18a9e45b73577f93ef3be6562f4e.tar.xz
seaweedfs-662915e6915d18a9e45b73577f93ef3be6562f4e.zip
Delete all chunks when delete a ChunkManifest
LoadChunkManifest can uncompress buffer move compress.go from storage to operation because of import cycle MakeFile add cross complete command
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 25a6a39cd..6719a7bdd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,22 @@
+BINARY = weed
-.clean:
- go clean -i -v ./go/weed/
+GO_FLAGS = #-v
+SOURCE_DIR = ./go/weed/
-.deps:
- go get -d ./go/weed/
+all: build
-.build: .deps
- go build -v ./go/weed/
+.PHONY : clean deps build linux
-all: .build
+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)