aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-07-09 13:50:37 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2025-07-09 13:50:37 +0200
commit99380d59be12989796ae1dca17d5c9069e381fab (patch)
tree727609ceb12ff005a28844949035ec66d6996684 /Makefile
parentc42fee89493e06b35c7a5873e93b0b8734da6dd7 (diff)
downloadconstance-ring-99380d59be12989796ae1dca17d5c9069e381fab.tar.gz
constance-ring-99380d59be12989796ae1dca17d5c9069e381fab.tar.bz2
constance-ring-99380d59be12989796ae1dca17d5c9069e381fab.tar.xz
constance-ring-99380d59be12989796ae1dca17d5c9069e381fab.zip
Better hunspell setup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7c903d7..169bf9d 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,7 @@ stage-6.md: stage-5.txt Makefile
# This actually updates dict by sorting and removing leading numbers/spaces.
dict.tmp: dict
+ touch dict.tmp
cat dict |\
sed "s,^[0-9 ]*,," |\
sort |\
@@ -67,11 +68,11 @@ dict.tmp: dict
uniq > dict.tmp && cp dict.tmp dict
spellcheck: stage-6.md
- hunspell -p dict -d nb_NO stage-6.md dict.tmp
+ hunspell -p $$(pwd)/dict -d nb_NO,constance-ring $<
-spellcheck-words: stage-6.md dict.tmp
+spellcheck-words: stage-6.md dict.tmp constance-ring.dic
@echo hunspell
- hunspell -p dict -d nb_NO -l < $< | sort | uniq -c | sort -n > $@.tmp
+ hunspell -p $$(pwd)/dict -d nb_NO,constance-ring -l < $< | sort | uniq -c | sort -n > $@.tmp
@mv $@.tmp spellcheck-words
constance-ring.epub: header.md stage-6.md spellcheck-words