From 6b03bb7eb803eafe99d5e7f97eb9ddfccbe762ad Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Sat, 12 Jun 2021 01:03:27 +0200 Subject: [PATCH] Makefile: allow override of stage (revremark field for ASCIIdoctor) 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. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 28f0755..b83e04e 100644 --- a/Makefile +++ b/Makefile @@ -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