File size: 448 Bytes
6288873
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/make -f

SRCS := $(wildcard *.tex)
PDFS := $(SRCS:%.tex=%.pdf)
SVGS := $(SRCS:%.tex=%.svg)

AUXS := $(SRCS:%.tex=%.aux)
TEXLOGS := $(SRCS:%.tex=%.log)

all: ${PDFS} ${SVGS} logo.png

%.pdf: %.tex
	pdflatex "$<"

%.svg: %.pdf
	inkscape --pdf-poppler "$<" -o "$@"

%.png: %.pdf
	inkscape --pdf-poppler "$<" --export-dpi=300 --export-png="$@"

texauxclean:
	rm -f ${AUXS}
	rm -f ${TEXLOGS}

clean: texauxclean
	rm -f ${PDFS}
	rm -f ${SVGS}