mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Working build system, builds gopath dynamically
This commit is contained in:
23
Makefile
23
Makefile
@@ -1,7 +1,22 @@
|
||||
GOPATH := $(CURDIR)/third_party
|
||||
GOPATH := $(CURDIR)/tmp/gopath
|
||||
|
||||
all:
|
||||
go build
|
||||
all: build copy_bin
|
||||
|
||||
copy_bin:
|
||||
cp tmp/gopath/bin/* bin/
|
||||
|
||||
stage_build:
|
||||
mkdir -p $(GOPATH)
|
||||
mkdir -p bin
|
||||
mkdir -p tmp/gopath/src/github.com/minios/minios
|
||||
rsync -a . tmp/gopath/src/github.com/minios/minios/
|
||||
rsync -a third_party/* tmp/gopath
|
||||
|
||||
|
||||
build: stage_build
|
||||
go install github.com/minios/minios/minios
|
||||
go install github.com/minios/minios/miniosd
|
||||
cp tmp/gopath/bin/* bin/
|
||||
|
||||
clean:
|
||||
rm minios
|
||||
rm -rf tmp bin
|
||||
|
||||
Reference in New Issue
Block a user