#--*- Makefile -*--
#*
# Check spelling of *.tex files using 'aspell'
#**

TEXT_PARTS     ?= $(wildcard text-parts/*.txt)
WORDS          ?= ./words.lst
SPELL_LANGUAGE ?= en_GB

.PHONY: aspell

aspell: ${TEX_FILES} ${TEXT_PARTS}
	for file in $^; do \
		aspell -x -p ${WORDS} -l ${SPELL_LANGUAGE} -c $$file; \
	done
