VERSION = 0.0.0-alpha.2 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 tag-release: @echo git add -p Makefile @echo git add -p version.tex @echo git commit -m "'"${OUTPUT} v${VERSION}"'" @echo git tag -a v${VERSION} -m "'"Version ${VERSION}"'" clean: @rm -f *.aux *.log clean-all: clean @rm -f *.pdf