From 849013a6d2ae99ea1b088298b8f2067818b7404d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 24 May 2022 17:16:49 -0500 Subject: Generate a feed --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 87e730d..e7c5863 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,13 @@ ITMPR = \ env HTTMP='$T' HTOUT='\$$@' \ ${HTSH} "${ITMPL}" < /dev/null > '\$$@' -TMPL = ${PTMPL} ${ITMPL} +RTMPL = tmpl.feed.xml +RTMPR = \ + feed.xml: ${RTMPL} index.html $$(cat ${TPG}); \ + env HTTMP='$T' HTOUT='\$$@' \ + ${HTSH} "${RTMPL}" < /dev/null > '\$$@' + +TMPL = ${PTMPL} ${ITMPL} ${RTMPL} BUILD_INPUTS = ${INPUT}/* ${TMPL} ${HT} RSYNCEXCLUDE = \ @@ -51,6 +57,7 @@ RSYNCEXCLUDE = \ "*.mk" \ "*.awk" \ "*.bod.txt" \ + "tmpl.*" \ "tmp/" RSYNCEXCLUDEFILE = ${BUILD}/.rsync-exclude RSYNC = rsync -auvz --exclude-from="${RSYNCEXCLUDEFILE}" --delete @@ -75,7 +82,8 @@ ${HTMK}: Makefile ${INPUT}/*.ht $T done >> '$@' @printf '%s\n' "${ITMPR}" >> '$@' - @printf "build: $$(cat ${TPG}) index.html" >> '$@' + @printf '%s\n' "${RTMPR}" >> '$@' + @printf "build: $$(cat ${TPG}) index.html feed.xml" >> '$@' @printf '%s\n' 'done' $T: ; mkdir -p "$@" -- cgit 1.4.1-21-gabe81