aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-07-03 12:37:51 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-07-03 12:37:51 -0400
commitf46f300dc5851c22da29f37d8f7201563253aa87 (patch)
tree230397e4092dd1fdac9bc51cd49659ed9b2730af
parentade9463eb47b10cb34e0847ad69f0c487e77377c (diff)
downloadwebsite-f46f300dc5851c22da29f37d8f7201563253aa87.tar.gz
cleanup makefile
-rw-r--r--Makefile23
1 files changed, 6 insertions, 17 deletions
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 ######################