mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 17:46:19 +00:00
17 lines
328 B
Makefile
Executable File
17 lines
328 B
Makefile
Executable File
|
|
SRC_DIR = .
|
|
OUT_DIR = ../images
|
|
|
|
POSTFIX := _label
|
|
SVG := $(wildcard $(SRC_DIR)/*.svg)
|
|
PNG := $(patsubst $(SRC_DIR)/%.svg,$(OUT_DIR)/%$(POSTFIX).png,$(SVG))
|
|
DIR := ${CURDIR}
|
|
|
|
all: $(PNG)
|
|
|
|
clean:
|
|
rm -f $(PNG)
|
|
|
|
$(OUT_DIR)/%$(POSTFIX).png: $(SRC_DIR)/%.svg
|
|
inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@
|