forked from lufixSch/tum_ffm_cheatsheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 741 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
31
32
33
34
# Minimal makefile for Latex protocol template
# You can set these variables from the command line, and also
# from the environment.
OUTDIR ?= build
DOC ?= cheatsheet
PDF ?= CheatSheet
XELATEX = -interaction=nonstopmode -synctex=1 -file-line-error -output-directory=$(OUTDIR) -f
LATEXMK = -xelatex $(XELATEX)
TEXLIVEONFLY = --compiler=xelatex --arguments="$(XELATEX)"
.PHONY: help Makefile
help:
pdf:
@echo "Compiling $(DOC).tex"
@latexmk $(LATEXMK) $(DOC).tex
listen:
@echo "Listening on filechanges for $(DOC).tex"
@latexmk $(LATEXMK) -pvc $(DOC).tex
dep:
@echo "Install missing dependencies"
@texliveonfly $(TEXLIVEONFLY) $(DOC).tex
pkg:
@make pdf
@cp $(OUTDIR)/$(DOC).pdf ./$(PDF).pdf
clean:
@rm -R $(OUTDIR)
@make pdf