mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #61 from synack/master
Add a makefile to make life easier
This commit is contained in:
commit
3a6c2e48f9
1 changed files with 23 additions and 0 deletions
23
Makefile
Normal file
23
Makefile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
GOPATH := $(PWD)/env
|
||||||
|
BUILDPATH := $(PWD)/build
|
||||||
|
|
||||||
|
all: docker.o dockerd.o
|
||||||
|
|
||||||
|
env:
|
||||||
|
mkdir -p ${BUILDPATH} ${GOPATH}/src/github.com/dotcloud/
|
||||||
|
ln -s $(PWD) ${GOPATH}/src/github.com/dotcloud/docker
|
||||||
|
|
||||||
|
deps:
|
||||||
|
GOPATH=${GOPATH} go get github.com/kr/pty
|
||||||
|
GOPATH=${GOPATH} go get github.com/mattn/go-sqlite3
|
||||||
|
GOPATH=${GOPATH} go get github.com/shykes/gorp
|
||||||
|
|
||||||
|
clean:
|
||||||
|
go clean
|
||||||
|
rm -rf env build
|
||||||
|
|
||||||
|
docker.o: env deps
|
||||||
|
GOPATH=${GOPATH} go build -o ${BUILDPATH}/docker docker/docker.go
|
||||||
|
|
||||||
|
dockerd.o: env deps
|
||||||
|
GOPATH=${GOPATH} go build -o ${BUILDPATH}/dockerd dockerd/dockerd.go
|
Loading…
Reference in a new issue