aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 1164f4d0637e1ce031be667a52d577285d41ad8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NAME := example

SRC := \
		$(NAME).tex \
		ecrposter.cls

.PHONY: clean

$(NAME).pdf: $(SRC)
	if which latexmk > /dev/null 2>&1; then \
		latexmk -pdf -f -pdflatex='pdflatex -halt-on-error -file-line-error' $<;\
	else \
		pdflatex -halt-on-error -file-line-error $< && \
		bibtex $(patsubst %.tex,%,$<) && \
		pdflatex -halt-on-error -file-line-error $< ;\
		pdflatex -halt-on-error -file-line-error $< ;\
	fi

clean:
	$(RM) *.aux *.log *.out *.vrb $(NAME).pdf \
	$(NAME).bbl $(NAME).blg $(NAME).fdb_latexmk \
	$(NAME).toc $(NAME).fls