Files
pybricks-api/doc/api/_images/Makefile
T
Laurens Valk 741af5280a config: ignore only generated images
Make sure we can add other images without doing special things.
2020-01-29 12:57:03 +01:00

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