mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 17:52:11 +00:00
Makefile: support quick builds with renderSections
This commit is contained in:
parent
75db0fe0fa
commit
fa6de41991
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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
|
||||
|
|
Loading…
Reference in a new issue