SOURCES = $(wildcard *.tex) | |
PNGS = $(SOURCES:.tex=.png) | |
PDFS = $(SOURCES:.tex=.pdf) | |
png: $(PNGS) | |
pdf: $(PDFS) | |
%.pdf: %.tex | |
pdflatex $< | |
rm $(<:.tex=.aux) $(<:.tex=.log) | |
%.png: %.pdf | |
convert -density 600 $< -flatten $@ | |
clean: | |
rm -rf auto *.aux *.log *.synctex.gz | |
cleanall: clean | |
rm -rf *.png *.pdf | |