Skip to content

Commit

Permalink
Makefiles: Fix dependencies around ambassador.version
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Shumaker <[email protected]>
  • Loading branch information
LukeShu committed Sep 17, 2021
1 parent 81cf458 commit 7cbac83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ OSS_HOME := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
_git_remote_urls := $(shell git remote | xargs -n1 git remote get-url --all)
IS_PRIVATE ?= $(findstring private,$(_git_remote_urls))

images: python/ambassador.version
push: python/ambassador.version

include $(OSS_HOME)/build-aux/tools.mk
include $(OSS_HOME)/builder/builder.mk
include $(OSS_HOME)/_cxx/envoy.mk
include $(OSS_HOME)/charts/emissary-ingress/Makefile
Expand Down
5 changes: 2 additions & 3 deletions builder/builder.mk
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ raw-version:
@$(BUILDER) raw-version
.PHONY: raw-version

python/ambassador.version:
$(BUILDER) raw-version > python/ambassador.version
.PHONY: python/ambassador.version
python/ambassador.version: $(tools/write-ifchanged) FORCE
$(BUILDER) raw-version | $(tools/write-ifchanged) python/ambassador.version

compile: sync
@$(BUILDER) compile
Expand Down

0 comments on commit 7cbac83

Please sign in to comment.