makefile: use placeholder versions for api-update rule

In order to simplify the workflow for contributors we'll continue to ask
people to run `make api-update` when contributing new APIs. This will
record the API in our api-status files. However, it will now use a
placeholder value without a real version number. If a PR is filed and
is not accepted before the next scheduled release the maintenance team
will not have to ask the contributor to update the API versions
to correct the numbers.

Instead, we need to run the new `make api-fix-versions` rule at least
once before a release to replace the placeholder versions with real
version numbers.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2022-08-01 14:25:13 -04:00 committed by mergify[bot]
parent d6bf51115d
commit 7abe5a239a
1 changed files with 5 additions and 1 deletions

View File

@ -266,8 +266,12 @@ api-check: implements-json
./contrib/apiage.py
api-update: implements-json
./contrib/apiage.py --mode=update \
./contrib/apiage.py --mode=update --placeholder-versions
api-fix-versions:
./contrib/apiage.py --mode=fix-versions \
--current-tag="$$(git describe --tags --abbrev=0)"
./contrib/apiage.py --mode=write-doc
api-doc:
./contrib/apiage.py --mode=write-doc