forked from Hg/htlle-da-vorlage
Reogranized internals structure do eliminate duplicate code
This commit is contained in:
parent
447750f072
commit
1eb5bfbf42
35
Makefile
35
Makefile
@ -23,29 +23,15 @@ help:
|
||||
@echo ' '
|
||||
@echo 'Änderungswünsche werden ausschließlich via issue und pullrequest '
|
||||
@echo 'Usage: '
|
||||
@echo ' make pdf generate a PDF file '
|
||||
@echo ' make pdf generate a PDF file '
|
||||
@echo ' make spellcheck checks the output for misspelled words '
|
||||
@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
|
||||
# Helper Targets
|
||||
|
||||
#Remove the staging directory
|
||||
@echo "Removing the staging directory"
|
||||
@rm -rf $(STAGINGDIR)
|
||||
|
||||
@echo "finished."
|
||||
|
||||
pdf:
|
||||
build-stage:
|
||||
# Kopieren der DA-Quellen in das staging Verzeichnis
|
||||
@echo "Source directory = $(SOURCEDIR)"
|
||||
@echo "Copying source files into the staging directory"
|
||||
@ -60,6 +46,7 @@ pdf:
|
||||
@echo "Merging style files into the staging directory"
|
||||
@rsync -av $(STYLEDIR)/ $(STAGINGDIR)/style --quiet
|
||||
|
||||
compile-pdf:
|
||||
# Bauen der Arbeit aus dem staging verzeichnis heraus
|
||||
@echo "Compiling the theses into the pdf: $(OUTPUTFILE)"
|
||||
|
||||
@ -82,11 +69,21 @@ pdf:
|
||||
@rsync -az $(OUTPUTFILE) $(SOURCEDIR)/
|
||||
@rsync -az $(LOGFILE) $(SOURCEDIR)/
|
||||
|
||||
do-spellcheck:
|
||||
# Ü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-stage:
|
||||
#Remove the staging directory
|
||||
@echo "Removing the staging directory"
|
||||
@rm -rf $(STAGINGDIR)
|
||||
|
||||
@echo "finished."
|
||||
|
||||
# Targets which are intended to be used directly
|
||||
spellcheck: build-stage do-spellcheck remove-stage
|
||||
|
||||
pdf: build-stage compile-pdf remove-stage
|
||||
|
||||
|
||||
.PHONY: help pdf clean
|
||||
|
Loading…
Reference in New Issue
Block a user