summaryrefslogtreecommitdiff
path: root/grafik/Makefile
blob: fdf9a9fe1af8e5a5e8927afa691a9f78beb87506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SVGFILES=${wildcard */*.svg} ${wildcard */*/*.svg} ${wildcard */*/*.svg}

PDFFILES=${addsuffix .pdf,${basename ${SVGFILES}}}
PNGFILES=${addsuffix .png,${basename ${SVGFILES}}}

pdf: ${PDFFILES}
png: ${PNGFILES}

clean: cleanpng cleanpdf

cleanpng:
	rm -rf ${PNGFILES}

cleanpdf:
	rm -rf ${PDFFILES}

%.pdf: %.svg
	inkscape --without-gui --export-pdf=$@ $<

%.png: %.svg
	inkscape --without-gui --export-png=$@ -w1000 $<

.PHONY: clean cleanpng cleanpdf pdf png