From 1ba20f93131caeb2b964f016c0086d8fb39f60b0 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 25 May 2022 15:53:21 -0500 Subject: Update footer -- and properly integrate it into Make --- Makefile | 4 +++- src/_foot.htm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e7c5863..537fabe 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,8 @@ HTSH = ./ht.sh HTMK = ht.mk HT = ${HTAWK} ${HTSH} ${HTMK} +INCLUDES = _head.htm _foot.htm + T = .tmp TMK = $T/mk TPG = $T/ps @@ -22,7 +24,7 @@ PTMPC = \ $$(title) \ $$(body) PTMPR = \ - $$hb: $$ht ; \ + $$hb: $$ht ${INCLUDES} ; \ ${HTAWK} < '$$ht' | \ env HTTMP='$T' HTENV='$T/\$$<.env' HTOUT='\$$@' HTBOD='\$$<.bod.txt' \ ${HTSH} '${PTMPL}' > '\$$@' diff --git a/src/_foot.htm b/src/_foot.htm index 0453b0b..8e1ee54 100644 --- a/src/_foot.htm +++ b/src/_foot.htm @@ -4,7 +4,7 @@ $(if [ $(command date +%Y) -gt 2022 ]; then print "– $(command date +%Y)"; fi) C. Duckworth under the Good Choices License. - (source) + (source) -- cgit 1.4.1-21-gabe81