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 <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2022-11-28 14:09:06 -05:00 committed by mergify[bot]
parent a53195cce2
commit 34ba505ee9
1 changed files with 6 additions and 1 deletions

View File

@ -262,22 +262,27 @@ clean-implements:
$(RM) ./implements $(RM) ./implements
.PHONY: api-check
api-check: implements-json api-check: implements-json
./contrib/apiage.py ./contrib/apiage.py
.PHONY: api-update
api-update: implements-json api-update: implements-json
./contrib/apiage.py --mode=update --placeholder-versions ./contrib/apiage.py --mode=update --placeholder-versions
.PHONY: api-promote
api-promote: implements-json api-promote: implements-json
./contrib/apiage.py --mode=promote \ ./contrib/apiage.py --mode=promote \
--current-tag="$$(git describe --tags --abbrev=0)" --current-tag="$$(git describe --tags --abbrev=0)"
./contrib/apiage.py --mode=write-doc ./contrib/apiage.py --mode=write-doc
.PHONY: api-fix-versions
api-fix-versions: api-fix-versions:
./contrib/apiage.py --mode=fix-versions \ ./contrib/apiage.py --mode=fix-versions \
--current-tag="$$(git describe --tags --abbrev=0)" --current-tag="$$(git describe --tags --abbrev=0)"
./contrib/apiage.py --mode=write-doc ./contrib/apiage.py --mode=write-doc
.PHONY: api-doc
api-doc: api-doc:
./contrib/apiage.py --mode=write-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 # force_go_build is phony and builds nothing, can be used for forcing
# go toolchain commands to always run # 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