From 34ba505ee9b1af83d25048a1364a561e48cc73e8 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 28 Nov 2022 14:09:06 -0500 Subject: [PATCH] makefile: consistently mark all api-* targets as phony I personally do not like the style of using one .PHONY line as it just means I end up forgetting to mark things as phony. Change all the api-* targets to use a .PHONY: per target so its very clear these are all phony. Signed-off-by: John Mulligan --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 90da402..7b1b730 100644 --- a/Makefile +++ b/Makefile @@ -262,22 +262,27 @@ clean-implements: $(RM) ./implements +.PHONY: api-check api-check: implements-json ./contrib/apiage.py +.PHONY: api-update api-update: implements-json ./contrib/apiage.py --mode=update --placeholder-versions +.PHONY: api-promote api-promote: implements-json ./contrib/apiage.py --mode=promote \ --current-tag="$$(git describe --tags --abbrev=0)" ./contrib/apiage.py --mode=write-doc +.PHONY: api-fix-versions api-fix-versions: ./contrib/apiage.py --mode=fix-versions \ --current-tag="$$(git describe --tags --abbrev=0)" ./contrib/apiage.py --mode=write-doc +.PHONY: api-doc api-doc: ./contrib/apiage.py --mode=write-doc @@ -310,4 +315,4 @@ implements-json: $(BUILDFILE) # force_go_build is phony and builds nothing, can be used for forcing # go toolchain commands to always run -.PHONY: build fmt test test-docker check test-binaries test-bins force_go_build check-implements clean-implements api-check api-update api-doc implements-json +.PHONY: build fmt test test-docker check test-binaries test-bins force_go_build check-implements clean-implements implements-json