diff options
author | ben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-12-29 23:04:01 +0000 |
---|---|---|
committer | ben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-12-29 23:04:01 +0000 |
commit | 2820549d0f6caaea684920bf151e8a2034e5a9a6 (patch) | |
tree | eae2462b1f597f3225035413ed1121411b064445 | |
parent | 6171daa40928e08ff93fa2444a6f0bfa2621a494 (diff) |
kleine Schönheitskorrekturen + neues Makefiletarget für Homepagegrafiken (www)
git-svn-id: https://svn.neo-layout.org@1348 b9310e46-f624-0410-8ea1-cfbb3a30dc96
-rw-r--r-- | grafik/Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/grafik/Makefile b/grafik/Makefile index e1efc4a..c77de2f 100644 --- a/grafik/Makefile +++ b/grafik/Makefile @@ -1,26 +1,36 @@ -SVGFILES=${wildcard *.svg} ${wildcard */*.svg} ${wildcard */*/*.svg} $(foreach i, 1 2 3 4 5 6, tastatur3d/tastatur_neo_Ebene${i}.svg) +EBENENSVG=$(foreach i, 1 2 3 4 5 6, tastatur_neo_Ebene${i}.svg) +SVGFILES=$(filter-out ./tastatur3d/tastatur_neo_alle_Ebenen.svg, $(shell find -name "*.svg")) $(foreach file, ${EBENENSVG}, tastatur3d/${file}) -PDFFILES=${addsuffix .pdf,${basename ${SVGFILES}}} -PNGFILES=${addsuffix .png,${basename ${SVGFILES}}} +PDFFILES=$(addsuffix .pdf,$(basename ${SVGFILES})) +PNGFILES=$(addsuffix .png,$(basename ${SVGFILES})) +default: pdf png www pdf: ${PDFFILES} png: ${PNGFILES} -clean: cleanpng cleanpdf +clean: cleanpng cleanpdf cleanwww cleanpng: - rm -rf ${PNGFILES} + rm -f ${PNGFILES} cleanpdf: - rm -rf ${PDFFILES} + rm -f ${PDFFILES} tastatur3d/tastatur_neo_Ebene%.svg: tastatur3d/tastatur_neo_alle_Ebenen.svg /bin/echo -e '/inkscape:label="Ebene $*"\n.+1\ns/none/inline/g\nw $@'|ed $< +WWWPIC=$(addsuffix .png, $(basename $(foreach file, ${EBENENSVG}, ../www/${file}))) +www: ${WWWPIC} +../www/%.png: tastatur3d/%.svg + inkscape --without-gui --export-area=0:0:1360,747:457,673 --export-png=$@ -w650 $< + +cleanwww: + rm -f ${WWWPIC} + %.pdf: %.svg inkscape --without-gui --export-pdf=$@ $< %.png: %.svg inkscape --without-gui --export-png=$@ -w1000 $< -.PHONY: clean cleanpng cleanpdf pdf png +.PHONY: clean cleanpng cleanpdf default pdf png |