seaweedfs/Makefile

23 lines
379 B
Makefile
Raw Normal View History

2016-06-05 17:57:14 +00:00
BINARY = weed/weed
2015-11-18 02:03:23 +00:00
GO_FLAGS = #-v
2016-06-05 17:57:14 +00:00
SOURCE_DIR = ./weed/
2015-11-18 02:03:23 +00:00
all: build
2015-11-18 02:03:23 +00:00
.PHONY : clean deps build linux
2015-11-18 02:03:23 +00:00
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)