aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2015-12-14 21:42:38 -0800
committerChris Lu <chris.lu@gmail.com>2015-12-14 21:42:38 -0800
commitdf5e54e02af60f6a1537cd5853def4dad42932bc (patch)
tree1037c5cff81bfda50ca42a3249ebaeeb3774501e /Makefile
parent020dd480ed8dab0eeb3b6b25b2558084a51b26f2 (diff)
parent031d26527f0ebe39bb26c8e8b4503168a849265a (diff)
downloadseaweedfs-df5e54e02af60f6a1537cd5853def4dad42932bc.tar.xz
seaweedfs-df5e54e02af60f6a1537cd5853def4dad42932bc.zip
Merge pull request #224 from tnextday/feature/chunked-file-support
Feature/chunked file support
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)