mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04:00
Merge pull request #4 from fkautz/pr_out_working_build_system_builds_gopath_dynamically
This commit is contained in:
commit
ddefc424ce
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
.gvm_local
|
.gvm_local
|
||||||
minios
|
/tmp/
|
||||||
|
/bin/
|
||||||
|
**/*.swp
|
||||||
|
23
Makefile
23
Makefile
@ -1,7 +1,22 @@
|
|||||||
GOPATH := $(CURDIR)/third_party
|
GOPATH := $(CURDIR)/tmp/gopath
|
||||||
|
|
||||||
all:
|
all: build copy_bin
|
||||||
go build
|
|
||||||
|
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:
|
clean:
|
||||||
rm minios
|
rm -rf tmp bin
|
||||||
|
@ -3,5 +3,5 @@ package main
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("Hello World")
|
fmt.Println("hello")
|
||||||
}
|
}
|
7
miniosd/main.go
Normal file
7
miniosd/main.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("hello")
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user