From fa6de419916d273299664b4c5c273d3b805bbc88 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 25 Mar 2024 01:56:06 -0400 Subject: [PATCH] Makefile: support quick builds with renderSections --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ef29636..3087b97 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,9 @@ RSYNCFLAGS_EXTRA ?= # Diminishing returns after level 6; sometimes even larger files. ECT_LEVEL=6 +# For quick builds, just build these sections: +RENDER_SECTIONS=entries + csv/webrings.csv: sh scripts/populate-webrings.sh @@ -29,7 +32,7 @@ data/bookmarks.json: hugo: csv/webrings.csv data/bookmarks.json $(SRCFILES) sh scripts/get-webmentions.sh hugo -b $(HUGO_BASEURL) $(HUGO_FLAGS) -d $(OUTPUT_DIR) - mv $(OUTPUT_DIR)/about/_index.gmi $(OUTPUT_DIR)/about/index.gmi + find "$(OUTPUT_DIR)/about/_index.gmi" && mv $(OUTPUT_DIR)/about/_index.gmi $(OUTPUT_DIR)/about/index.gmi || echo # .hintrc-local for linting local files # same as regular .hintrc but with a different connector. @@ -129,6 +132,8 @@ compress: gzip brotli xhtmlize: hugo sh scripts/xhtmlize.sh $(OUTPUT_DIR) +.PHONY: quick-build + .PHONY: copy-to-xhtml copy-to-xhtml: find $(OUTPUT_DIR) -type f -name "*.html" | grep -v 'resume/index.html' | xargs -n1 sh scripts/copy-file-to-xhtml.sh