From 2820549d0f6caaea684920bf151e8a2034e5a9a6 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 29 Dec 2008 23:04:01 +0000 Subject: =?UTF-8?q?kleine=20Sch=C3=B6nheitskorrekturen=20+=20neues=20Makef?= =?UTF-8?q?iletarget=20f=C3=BCr=20Homepagegrafiken=20(www)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1348 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- grafik/Makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'grafik') 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 -- cgit v1.2.3