Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ export GO15VENDOREXPERIMENT
COMMIT=$(shell git rev-parse HEAD 2> /dev/null || true)

EPOCH_TEST_COMMIT ?= v0.2.0
TOOLS := \
oci-create-runtime-bundle \
oci-image-validate \
oci-unpack

default: help

Expand All @@ -20,10 +24,10 @@ check-license:
@echo "checking license headers"
@./.tool/check-license

tools:
go build -ldflags "-X main.gitCommit=${COMMIT}" ./cmd/oci-create-runtime-bundle
go build -ldflags "-X main.gitCommit=${COMMIT}" ./cmd/oci-unpack
go build -ldflags "-X main.gitCommit=${COMMIT}" ./cmd/oci-image-validate
tools: $(TOOLS)

$(TOOLS): oci-%:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the oci-% is looking for dependencies of the target that have the oci-% pattern. Is that intended?

go build -ldflags "-X main.gitCommit=${COMMIT}" ./cmd/$@

lint:
@echo "checking lint"
Expand Down Expand Up @@ -69,13 +73,11 @@ install.tools: .install.gitvalidation .install.glide .install.glide-vc .install.
gometalinter --install --update

clean:
rm -rf *~ $(OUTPUT_DIRNAME)
rm -f oci-create-runtime-bundle
rm -f oci-unpack
rm -f oci-image-validate
rm -rf *~ $(OUTPUT_DIRNAME) $(TOOLS)

.PHONY: \
tools \
$(TOOLS) \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is somewhat redundant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, not true. When those binaries are built from the subdirectory, then the executable by those names is present.

check-license \
clean \
lint \
Expand Down