NAME  = rapport
TEX   = $(NAME).tex
SRC   = $(TEX)
PDF   = $(TEX:.tex=.pdf)
# FLAGS = -shell-escape # pour minted

all: $(PDF)

$(PDF): $(SRC)
	@pdflatex  $(FLAGS) $(TEX)
	pdflatex  $(FLAGS) $(TEX)

clean:
	rm -rf _minted-$(NAME)/ $(PDF) $(NAME).aux $(NAME).log $(NAME).out \
			$(NAME).toc $(NAME).fdb_latexmk $(NAME).fls $(NAME).synctex.gz