-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
53 lines (38 loc) · 1.77 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DOCUMENT_NAME = dokumentation
OUTPUT_DIR = output
ABGABE_DIR = ../abgabe/
####latexmk
# Build the LaTeX document with latexmk
all: report
# Remove output directory and generated document
clean:
rm -rf $(OUTPUT_DIR)
rm -f $(DOCUMENT_NAME).pdf
rm -f $(DOCUMENT_NAME).synctex.gz
# cleanup tempfiles
cleanup:
latexmk -c
# Generate PDF output from LaTeX input files
report:
latexmk
####direct without latexmk
# Build the LaTeX document.
all-legacy: outputdir-legacy report-legacy
#cleanup-legacy
# cleanup tempfiles
cleanup-legacy:
rm -f $(OUTPUT_DIR)/$(DOCUMENT_NAME).aux $(OUTPUT_DIR)/$(DOCUMENT_NAME).acn $(OUTPUT_DIR)/$(DOCUMENT_NAME).glo $(OUTPUT_DIR)/$(DOCUMENT_NAME).ist $(OUTPUT_DIR)/$(DOCUMENT_NAME).lof $(OUTPUT_DIR)/$(DOCUMENT_NAME).lot $(OUTPUT_DIR)/$(DOCUMENT_NAME).lol $(OUTPUT_DIR)/$(DOCUMENT_NAME).out $(OUTPUT_DIR)/$(DOCUMENT_NAME).toc $(OUTPUT_DIR)/$(DOCUMENT_NAME).alg $(OUTPUT_DIR)/$(DOCUMENT_NAME).glg $(OUTPUT_DIR)/$(DOCUMENT_NAME).gls $(OUTPUT_DIR)/$(DOCUMENT_NAME).acr $(OUTPUT_DIR)/$(DOCUMENT_NAME).blg $(OUTPUT_DIR)/$(DOCUMENT_NAME).bbl $(OUTPUT_DIR)/$(DOCUMENT_NAME).bcf $(OUTPUT_DIR)/$(DOCUMENT_NAME).run.xml
# Remove output directory and generated document
clean-legacy:
clean
# Create LaTeX output directory.
outputdir-legacy:
$(shell mkdir $(OUTPUT_DIR) 2>/dev/null)
# Generate PDF output from LaTeX input files.
report-legacy:
pdflatex -interaction=errorstopmode -output-directory=$(OUTPUT_DIR) $(DOCUMENT_NAME)
biber --output-directory $(OUTPUT_DIR) $(DOCUMENT_NAME)
makeglossaries -d $(OUTPUT_DIR) -q $(DOCUMENT_NAME)
pdflatex -interaction=errorstopmode -output-directory=$(OUTPUT_DIR) $(DOCUMENT_NAME)
pdflatex -interaction=errorstopmode -output-directory=$(OUTPUT_DIR) $(DOCUMENT_NAME)
cp $(OUTPUT_DIR)/$(DOCUMENT_NAME).pdf $(DOCUMENT_NAME).pdf