1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

Makefile: support quick builds with renderSections

This commit is contained in:
Rohan Kumar 2024-03-25 01:56:06 -04:00
parent 75db0fe0fa
commit fa6de41991
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -19,6 +19,9 @@ RSYNCFLAGS_EXTRA ?=
# Diminishing returns after level 6; sometimes even larger files. # Diminishing returns after level 6; sometimes even larger files.
ECT_LEVEL=6 ECT_LEVEL=6
# For quick builds, just build these sections:
RENDER_SECTIONS=entries
csv/webrings.csv: csv/webrings.csv:
sh scripts/populate-webrings.sh sh scripts/populate-webrings.sh
@ -29,7 +32,7 @@ data/bookmarks.json:
hugo: csv/webrings.csv data/bookmarks.json $(SRCFILES) hugo: csv/webrings.csv data/bookmarks.json $(SRCFILES)
sh scripts/get-webmentions.sh sh scripts/get-webmentions.sh
hugo -b $(HUGO_BASEURL) $(HUGO_FLAGS) -d $(OUTPUT_DIR) 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 # .hintrc-local for linting local files
# same as regular .hintrc but with a different connector. # same as regular .hintrc but with a different connector.
@ -129,6 +132,8 @@ compress: gzip brotli
xhtmlize: hugo xhtmlize: hugo
sh scripts/xhtmlize.sh $(OUTPUT_DIR) sh scripts/xhtmlize.sh $(OUTPUT_DIR)
.PHONY: quick-build
.PHONY: copy-to-xhtml .PHONY: copy-to-xhtml
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 find $(OUTPUT_DIR) -type f -name "*.html" | grep -v 'resume/index.html' | xargs -n1 sh scripts/copy-file-to-xhtml.sh