This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
forked from blegat/LaTeXconf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (37 loc) · 1.97 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
LATEX_FLAGS := -pdf -lualatex -cd -silent
.PHONY: all main open clean clean_aux
all: open
open: main
@xdg-open build_latex/main.pdf 2>/dev/null 1>/dev/null &
main: build_latex/examples/structure/main.pdf \
build_latex/examples/title/main.pdf \
build_latex/exercices/1/main.pdf \
build_latex/exercices/2/main.pdf \
build_latex/exercices/3/main.pdf \
build_latex/exercices/bib/main.pdf \
build_latex/main.pdf
clean:
rm -r build_latex/*
clean-aux:
rm $(shell find build_latex/* -not -type d -not -path build_latex/main.pdf)
build_latex/examples/structure/main.pdf: src/examples/structure/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/examples/title/main.pdf: src/examples/title/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/exercices/1/main.pdf: src/exercices/1/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/exercices/2/main.pdf: src/exercices/2/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/exercices/3/main.pdf: src/exercices/3/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/exercices/bib/main.pdf: src/exercices/bib/main.tex
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)
build_latex/main.pdf: src/main.tex src/tex/*
@echo -e "\e[1;7;32m[=]\e[27m Compiling $< to $@ ...\e[0m"
latexmk $(LATEX_FLAGS) $(LATEX_OPT) -outdir=$(PWD)/$(@D) $< $(BASH_POSTPROCESSING)