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