-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 849 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
TARGET = main
NAME = nonlinear-control_miniproject
MODE = -interaction=batchmode --jobname=${NAME}
GARBAGE = *.aux *.bbl *.blg *.log *.lox *.toc *.out *.lof *.lot *.nav *.snm main.pdf *.acn *.acr *.alg *.glg *.glo *.gls *.ist *.backup *.dvi rapport.pdf *.tdo network-note.pdf nolinear-control_miniproject.pdf
# Colour definitions
CGREEN = "\033[1;92m"
CNORMAL = "\033[0;37m"
CYELLOW = "\033[1;33m"
.PHONY: pdf clean show
all: pdf clean
pdf:
@echo ${CGREEN} "Building miniproject" ${CNORMAL}
@echo ${CYELLOW} "make pdf" ${CNORMAL}
pdflatex ${MODE} ${TARGET}.tex
pdflatex ${MODE} ${TARGET}.tex
@echo ${CGREEN} "Build done" ${CNORMAL}
@echo ""
clean:
@echo ${CYELLOW} "Cleaning up garbage files" ${CNORMAL}
@find . | grep ".backup" | xargs rm -rf
@rm -f ${GARBAGE}
@echo ${CGREEN} "Done" ${CNORMAL}
show:
xdg-open ${NAME}.pdf &