Files
co2-meter-iface/assets/Makefile
2025-11-28 12:53:28 +01:00

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 $@