From 447750f0724e606682aee88df44b442db8eee9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Hutter?= Date: Wed, 22 Apr 2020 22:27:16 +0200 Subject: [PATCH] Added spellcheck target --- Makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 71bafae..d0e612e 100644 --- a/Makefile +++ b/Makefile @@ -27,9 +27,25 @@ help: @echo ' ' @echo ' ' +spellcheck: + # Style in das staging Verzeichnis mergen + @rsync -av $(SOURCEDIR)/ $(STAGINGDIR) \ + --cvs-exclude \ + --exclude=HTLLE-DA-Vorlage \ + --exclude=$(OUTPUTFILE) \ + --exclude=$(LOGFILE) \ + --quiet + + # Überprüft die staging Dateien auf Rechtschreibfehler + @pandoc "$(STAGINGDIR)"/*.md -t plain | hunspell -d de_AT,de_AT_frami,en_US -p ignore.dict -l -t | sort | uniq + + #Remove the staging directory + @echo "Removing the staging directory" + @rm -rf $(STAGINGDIR) + + @echo "finished." pdf: - # Kopieren der DA-Quellen in das staging Verzeichnis @echo "Source directory = $(SOURCEDIR)" @echo "Copying source files into the staging directory"