aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-05-19 13:51:59 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-06-15 01:30:30 +0200
commitba7bafdf6569e0debd371d2186c395b26f16729b (patch)
tree1f86feee96dad247fe22317b4647d0c949d1923c
parent1bcfa1f0cb10ce5ff4727ff634cd06609c7681f6 (diff)
downloadhaunt-blog-ba7bafdf6569e0debd371d2186c395b26f16729b.tar.gz
haunt-blog-ba7bafdf6569e0debd371d2186c395b26f16729b.tar.bz2
haunt-blog-ba7bafdf6569e0debd371d2186c395b26f16729b.zip
Makefile: fix haunt serve.
We need to tell guix shell to allow network connections otherwise haunt serve doesn't work. In addition running haunt serve directly without haunt build results in a page with the 'Resource not found: /' text on it. And after several refresh we still have the same page. Then at some point after a git commit we can see the following in the terminal: watch: observed write '[...]/haunt-blog/.git/COMMIT_EDITMSG' rebuilding... and it rebuilds the website. So it's better to have the 'serve' target depend on the 'build' target to have the wesite work right away. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1b29a16..1588bc6 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ GUIX_PYTHON_PACKAGES ?= python python-beautifulsoup4 python-html2text python-sh
CONVERT ?= $(GUIX_SHELL) $(GUIX_PYTHON_PACKAGES) -- python3 wordpresshtml2commonmark.py
HAUNT ?= $(GUIX_SHELL) --with-patch=guile=patches/$(GUILE_PATCH) haunt -- haunt
-
+HAUNT_SERVE ?= $(GUIX_SHELL) -N --with-patch=guile=patches/$(GUILE_PATCH) haunt -- haunt serve
HAUNT_PORT ?= 1968
VENDOR_REPLICANT_ARTWORK_REV ?= fc213d2ca94cef9047d1e4a71c21c4c4c87f349d
@@ -219,8 +219,8 @@ help:
"make markdown # create markdown pages. To be done after reviewing links.txt." \
"make check # Run tests." \
-serve:
- $(HAUNT) serve -w -p $(HAUNT_PORT)
+serve: build
+ $(HAUNT_SERVE) -w -p $(HAUNT_PORT)
website.tar.gz: build
tar \