20 lines
320 B
Makefile
20 lines
320 B
Makefile
SVGS = $(wildcard ./*.svg)
|
|
TARGET_BMPS = $(SVGS:.svg=.bmp)
|
|
SIZE = 45
|
|
BACKCOLOR = 080808
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET_BMPS)
|
|
@echo $(SVGS)
|
|
|
|
clean:
|
|
rm $(TARGET_BMPS)
|
|
|
|
%.bmp: %.png
|
|
@convert $< -background "#$(BACKCOLOR)" -alpha remove -define bmp:subtype=RGB565 $@
|
|
|
|
%.png: %.svg
|
|
inkscape -h $(SIZE) -w $(SIZE) $< -o $@
|
|
|