ccb1b90cdf
git-svn-id: https://svn.neo-layout.org@1338 b9310e46-f624-0410-8ea1-cfbb3a30dc96
23 lines
433 B
Makefile
23 lines
433 B
Makefile
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 --export-pdf=$@ $<
|
|
|
|
%.png: %.svg
|
|
inkscape --export-png=$@ -w1000 $<
|
|
|
|
.PHONY: clean cleanpng cleanpdf pdf png
|