Skip to content

Commit

Permalink
chore: Update makefile to rebuild on any source change
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Hill <[email protected]>
  • Loading branch information
zhill committed Dec 7, 2019
1 parent cd3e05f commit cdd7318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
COMMIT ?= $(shell git rev-parse HEAD)
SOURCES := $(shell find . -name '*.go')
BINARY := anchore-adapter
IMAGE_TAG ?= dev
REPOSITORY ?= anchore/harbor-scanner-adapter
IMAGE ?= $(REPOSITORY):$(IMAGE_TAG)

build: $(BINARY)

$(BINARY):
$(BINARY): $(SOURCES)
GOOS=linux GO111MODULE=on CGO_ENABLED=0 go build -o $(BINARY) cmd/anchore-adapter/main.go

.PHONY: container
Expand Down

0 comments on commit cdd7318

Please sign in to comment.