forked from imtekalex/emes_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 763 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
28
29
30
# Latex Makefile using latexmk
# Modified by Dogukan Cagatay <[email protected]>
# Modified by Philipp Jund
# Modified by Andre Schlegel, October of 2023
# Originally from : http://tex.stackexchange.com/a/40759
# Name for your pdf.
PROJNAME=main
# Name for your output folder, containing all generated latex files. Note: The generated pdf will be copied into the project folder for easier access.
OUT_DIR=out
.PHONY: $(PROJNAME).pdf all clean
all: dir $(PROJNAME).pdf
# Create the output directory.
dir:
mkdir -p $(OUT_DIR)
$(PROJNAME).pdf: $(PROJNAME).tex
latexmk -outdir=$(OUT_DIR) $<
cp $(OUT_DIR)/$(PROJNAME).pdf $(PROJNAME).pdf
cleanall:
rm -rf $(OUT_DIR)/*
# Deletes temporary files in the output folder.
clean:
latexmk -outdir=$(OUT_DIR)/ -c