-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
27 lines (22 loc) · 980 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
DOCUMENT_NAME = dokumentation
OUTPUT_DIR = output
ABGABE_DIR = ../abgabe/
# Build the LaTeX document.
all: outputdir report cleanup
# Remove output directory.
clean:
rm -rf $(OUTPUT_DIR)
# cleanup tempfiles
cleanup:
rm -f $(DOCUMENT_NAME).aux rm -f $(DOCUMENT_NAME).acn $(DOCUMENT_NAME).glo $(DOCUMENT_NAME).ist $(DOCUMENT_NAME).lof $(DOCUMENT_NAME).log $(DOCUMENT_NAME).lot $(DOCUMENT_NAME).lol $(DOCUMENT_NAME).out $(DOCUMENT_NAME).toc $(DOCUMENT_NAME).alg $(DOCUMENT_NAME).glg $(DOCUMENT_NAME).gls $(DOCUMENT_NAME).acr $(DOCUMENT_NAME).pdf
# Create LaTeX output directory.
outputdir:
$(shell mkdir $(OUTPUT_DIR) 2>/dev/null)
# Generate PDF output from LaTeX input files.
report:
pdflatex -interaction=errorstopmode $(DOCUMENT_NAME) > error.txt
makeglossaries -q dokumentation.glo
makeglossaries -q dokumentation.acn
pdflatex -interaction=errorstopmode $(DOCUMENT_NAME) > error.txt
cp $(DOCUMENT_NAME).pdf $(OUTPUT_DIR)
# cp $(DOCUMENT_NAME).pdf $(ABGABE_DIR)