tex.mk: Add support for DATE_FORMAT

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-04-20 13:26:07 +00:00
commit 4b876e5836

View file

@ -106,7 +106,8 @@ LATEX_INPUT = $(TEX) $(EPS)
HTML_INPUT = $(HTML) $(IMAGES)
# this comes in handy
DATE := $(if $(DATE),$(DATE),$(shell date +'%b, %d, %Y'))
DATE_FORMAT ?= '%b, %d, %Y'
DATE := $(if $(DATE),$(shell date +$(DATE_FORMAT) --date $(DATE)),$(shell date +$(DATE_FORMAT)))
TEX_WARN_DONT_EDIT = "\
%+---------------------------------------------------+\n\
%| DO NOT EDIT THIS FILE! |\n\