Skip to content

Commit

Permalink
Makefile: allow override of stage (revremark field for ASCIIdoctor)
Browse files Browse the repository at this point in the history
Specifying STAGE=... to make now overrides the revremark value (the default
still is 'Release candidate').  E.g. 'make STAGE="public review"' will mark
the version as being for public review.
  • Loading branch information
ptomsich committed Jun 11, 2021
1 parent d835e8c commit 6b03bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ COMMITDATE=$(shell git show -s --format=%ci | cut -d ' ' -f 1)
bitmanip/autogenerated:
-mkdir $@

STAGE ?= "Release candidate"

bitmanip/autogenerated/revision.adoc-snippet: Makefile bitmanip/autogenerated FORCE
echo ":revdate: ${COMMITDATE}" > $@
echo ":revnumber: ${VERSION}" >> $@
echo ":revremark: Release candidate" >> $@
echo ":revremark: ${STAGE}" >> $@

clean:
rm -f bitmanip-*.pdf
Expand Down

0 comments on commit 6b03bb7

Please sign in to comment.