summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a31837..de2ab76 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
+VERSION = 0.0.0-alpha.1
LATEX = pdflatex
OUTPUT = docker-doc
SRC != find * -name '*.tex'
-${OUTPUT}.pdf: ${SRC}
+${OUTPUT}.pdf: update-version ${SRC}
${LATEX} -jobname=${OUTPUT} main.tex
+update-version:
+ @sed -i'' -E "s/(versionnumber.*)\{.*\}/\1\{${VERSION}\}/g" version.tex
+ @sed -i'' -E "s/(versiondate.*)\{.*\}/\1\{`date '+%B%e, %Y'`\}/g" version.tex
+
clean:
@rm -f *.aux *.log