stud/III/Praktika/Makefile
Motiejus Jakštys 01255303be wip praktika
2020-06-02 10:54:32 +03:00

11 lines
312 B
Makefile

mj-praktika.pdf: mj-praktika.tex version.tex
latexmk -g -pdf $<
REF = $(shell git describe --tags --dirty)
GIT_DIR = $(shell git rev-parse --show-toplevel)/.git
version.tex: $(shell git ls-files .) $(GIT_DIR)
( \
date '+\gdef\GeneratedAt{%F %T %Z}%'; \
printf '\gdef\VCDescribe{%s}%%\n' $(REF); \
) > $@