html.mk

static html creation framework using make(1) and cpp(1)
Log | Files | Refs | README | LICENSE

commit 8777277a564c397b7bf205e987df3005f7eb66e6
parent b0d8d1a44c916017d56dd1a778e39f0615be82f9
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sun, 25 Jul 2021 00:54:44 +0000

mk: add creation time target

does not depend on anything and once created will not be updated.

Also have _timestamp.gen depend on the more general ${SRCS} array instead of
the default document.

Diffstat:
Mbsd.html.mk | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bsd.html.mk b/bsd.html.mk @@ -133,7 +133,10 @@ depend: ${SRCS:.in=.depend} _SUBDIRUSE # Use full names for day of week and month instead of default abbreviated ones. # FMT="+%A %B %e %H:%M:%S %Z %Y" -_timestamp.gen: index.in +_timestamp.gen: ${SRCS} + echo "<time datetime='`date +%Y-%m-%d`'>`date ${FMT}`</time>" > $@ + +_created.gen: echo "<time datetime='`date +%Y-%m-%d`'>`date ${FMT}`</time>" > $@ #