Makefile zum erstellen von pngs oder pdfs hinzugefügt
This commit is contained in:
parent
6c34327a7a
commit
80154baac2
|
@ -0,0 +1,23 @@
|
|||
SVGFILES=${wildcard tastatur2d-svg/*.svg} ${wildcard tastatur3d-svg/*.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 --export-pdf=$@ $<
|
||||
|
||||
%.png: %.svg
|
||||
inkscape --export-png=$@ -w1000 $<
|
||||
|
||||
.PHONY: clean cleanpng cleanpdf pdf png
|
Loading…
Reference in New Issue