Skip to content

Commit 7656c09

Browse files
author
Brian McCallister
committed
do not force generation of pb.go
1 parent 257b01c commit 7656c09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ epithet-ca:
1212
epithet-auth: internal/agent/agent.pb.go
1313
go build ./cmd/epithet-auth
1414

15-
.PHONE: generate
16-
generate:
15+
.PHONY: generate
16+
generate: internal/agent/agent.pb.go
17+
18+
internal/agent/agent.pb.go:
1719
go generate ./...
1820

1921
.PHONY: build
20-
build: generate epithet-agent epithet-ca epithet-auth
22+
build: internal/agent/agent.pb.go epithet-agent epithet-ca epithet-auth
2123

2224
.PHONY: test
2325
test: test-support ## build and run test plumbing
@@ -27,21 +29,21 @@ test/test_sshd/.built_$(DOCKER_TEST_SSHD_VERSION):
2729
cd test/test_sshd; docker build -t brianm/epithet-test-sshd:$(DOCKER_TEST_SSHD_VERSION) .; touch .built_$(DOCKER_TEST_SSHD_VERSION)
2830

2931
.PHONY: test-support
30-
test-support: generate test/test_sshd/.built_$(DOCKER_TEST_SSHD_VERSION)
32+
test-support: internal/agent/agent.pb.go test/test_sshd/.built_$(DOCKER_TEST_SSHD_VERSION)
3133

3234
.PHONY: clean
3335
clean: ## clean all local resources
3436
go clean ./...
3537
go clean -testcache
3638
rm -f epithet-*
37-
rm -rf internal/agent/agent.pb.go
3839
rm -rf dist
3940

4041
.PHONY: clean-all
4142
clean-all: clean
4243
rm -f test/test_sshd/.built_*
4344
go clean -cache
4445
go clean -modcache
46+
rm -rf internal/agent/agent.pb.go
4547
docker rmi -f brianm/epithet-test-sshd:$(DOCKER_TEST_SSHD_VERSION)
4648

4749
.PHONY: help

0 commit comments

Comments
 (0)