mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
svg.mk: Add svg.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
cba96d9b29
commit
614c07af88
1 changed files with 20 additions and 0 deletions
20
make/svg.mk
Normal file
20
make/svg.mk
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
SVG ?= $(wildcard *.svg)
|
||||
GENERATED_WIDTHS ?= 50 100 200 300 400 500 600 700 800 546
|
||||
GENERATED_PNG_WIDTHS ?= $(GENERATED_WIDTHS)
|
||||
GENERATED_PNGS = \
|
||||
$(foreach w, $(GENERATED_PNG_WIDTHS),$(patsubst %.svg,%-$w.png,$(SVG)))
|
||||
GENERATED_IMAGES = $(GENERATED_PNGS)
|
||||
|
||||
all: $(GENERATED_IMAGES)
|
||||
install:
|
||||
clean: clean.images
|
||||
distclean:
|
||||
|
||||
clean.images:
|
||||
rm -f $(GENERATED_IMAGES)
|
||||
|
||||
%.png: $(SVG)
|
||||
inkscape -w $(shell echo $* | sed 's/.*-//') \
|
||||
--export-png=$@ $(shell echo $* | sed 's/-[0-9]\+$$//').svg
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue