summaryrefslogtreecommitdiff
path: root/Makefile
blob: de2ab7676dd6025de54b9e4e26034663a7ac2252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
VERSION  = 0.0.0-alpha.1
LATEX    = pdflatex
OUTPUT   = docker-doc
SRC     != find * -name '*.tex'

${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

clean-all: clean
	@rm -f *.pdf