mirror of
https://github.com/containers/skopeo.git
synced 2026-07-15 15:34:50 +00:00
22 lines
816 B
Makefile
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
|