|
Revision 1342, 457 bytes
(checked in by erik, 4 years ago)
|
|
das war doppelt im makefile, sicher keine absicht
|
| Line | |
|---|
| 1 | SVGFILES=${wildcard *.svg} ${wildcard */*.svg} ${wildcard */*/*.svg} |
|---|
| 2 | |
|---|
| 3 | PDFFILES=${addsuffix .pdf,${basename ${SVGFILES}}} |
|---|
| 4 | PNGFILES=${addsuffix .png,${basename ${SVGFILES}}} |
|---|
| 5 | |
|---|
| 6 | pdf: ${PDFFILES} |
|---|
| 7 | png: ${PNGFILES} |
|---|
| 8 | |
|---|
| 9 | clean: cleanpng cleanpdf |
|---|
| 10 | |
|---|
| 11 | cleanpng: |
|---|
| 12 | rm -rf ${PNGFILES} |
|---|
| 13 | |
|---|
| 14 | cleanpdf: |
|---|
| 15 | rm -rf ${PDFFILES} |
|---|
| 16 | |
|---|
| 17 | %.pdf: %.svg |
|---|
| 18 | inkscape --without-gui --export-pdf=$@ $< |
|---|
| 19 | |
|---|
| 20 | %.png: %.svg |
|---|
| 21 | inkscape --without-gui --export-png=$@ -w1000 $< |
|---|
| 22 | |
|---|
| 23 | .PHONY: clean cleanpng cleanpdf pdf png |
|---|