From f46f300dc5851c22da29f37d8f7201563253aa87 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Wed, 3 Jul 2024 12:37:51 -0400 Subject: cleanup makefile --- Makefile | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4271951..cf9cd3a 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ FEED_TITLE = Cullum Smith's Blog FEED_DESCRIPTION = Dad, southerner, unix wrangler, banjo enjoyer STATIC_REGEX = .*\.(html|css|jpg|jpeg|png|ico|xml|txt|asc|webmanifest) RECENT_POSTS_LIMIT = 5 +HIGHLIGHT_STYLE = kate ### VARIABLES ###################### @@ -53,23 +54,11 @@ OUTPUT_RSS := ${OUTPUT_DIR}/${BLOG_RSS_FILE} ### BUILD COMMANDS ###################### -COPY = cp -p - -PANDOC := pandoc \ - --highlight-style=kate \ - --metadata=feed:/${BLOG_RSS_FILE} \ - --defaults=${DEFAULTS} - -GENERATE_RSS := ${BLOG_RSS_SCRIPT} \ - ${SOURCE_DIR}/${BLOG_DIR} \ - --title=${FEED_TITLE:Q} \ - --description=${FEED_DESCRIPTION:Q} \ - --url=${URL:Q} \ - --blog-path=/${BLOG_DIR} \ - --feed-path=/${BLOG_RSS_FILE} - -GENERATE_BLOGLIST := ${BLOG_LIST_SCRIPT} ${SOURCE_DIR}/${BLOG_DIR} -INTERPOLATE_BLOGLIST = sed -e '/${BLOG_LIST_REPLACE}/{r ${BLOGLIST_HTML}' -e 'd;}' +COPY = cp -p +PANDOC := pandoc --highlight-style=${HIGHLIGHT_STYLE} --metadata=feed:/${BLOG_RSS_FILE} --defaults=${DEFAULTS} +GENERATE_RSS := ${BLOG_RSS_SCRIPT} ${SOURCE_DIR}/${BLOG_DIR} --title=${FEED_TITLE:Q} --description=${FEED_DESCRIPTION:Q} --url=${URL:Q} --blog-path=/${BLOG_DIR} --feed-path=/${BLOG_RSS_FILE} +GENERATE_BLOGLIST := ${BLOG_LIST_SCRIPT} ${SOURCE_DIR}/${BLOG_DIR} +INTERPOLATE_BLOGLIST = sed -e '/${BLOG_LIST_REPLACE}/{r ${BLOGLIST_HTML}' -e 'd;}' ### TARGETS ###################### -- cgit v1.2.3