Files
skopeo/Makefile
Nalin Dahyabhai 3707445bc5 Drop auto-GOPATHing, it's too fragile
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-02-10 14:46:09 -05:00

22 lines
581 B
Makefile

AUTOTAGS := $(shell ./btrfs_tag.sh) $(shell ./libdm_tag.sh)
all: buildah
buildah: *.go cmd/buildah/*.go
go build -o buildah -tags "$(AUTOTAGS) $(TAGS)" ./cmd/buildah
.PHONY: clean
clean:
$(RM) buildah
# For vendoring to work right, the checkout directory must be such that out top
# level is at $GOPATH/src/github.com/nalind/buildah.
.PHONY: gopath
gopath:
test $(shell pwd) = $(shell cd ../../../../src/github.com/nalind/buildah ; pwd)
# We use https://github.com/lk4d4/vndr to manage dependencies.
.PHONY: deps
deps: gopath
env GOPATH=$(shell cd ../../../.. ; pwd) vndr