Files
skopeo/Makefile
Nalin Dahyabhai 02f30c773e Rename: lumper -> buildah
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-01-27 16:55:04 +01:00

22 lines
816 B
Makefile

GOPATH := $(shell pwd)/vendor:$(shell rm -fr .gopath && mkdir -p .gopath/src/github.com/containers && ln -s ../../../.. .gopath/src/github.com/containers/buildah && cd .gopath && pwd):$(shell rm -fr .govendorpath && mkdir -p .govendorpath && ln -s ../vendor .govendorpath/src && cd .govendorpath && pwd)
all: buildah
buildah: cmd/buildah/*.go
go build -o buildah ./cmd/buildah
.PHONY: clean
clean:
$(RM) buildah
# Some tools don't take well to the GOPATH shenanigans we use to make sure that
# builds succeed. For those, the checkout directory must be such that out top
# level is at $GOPATH/src/github.com/containers/buildah.
.PHONY: gopath
gopath:
test $(shell pwd) = $(shell cd ../../../../src/github.com/containers/buildah ; pwd)
.PHONY: deps
deps: gopath
env GOPATH=$(shell cd ../../../.. ; pwd) vndr