config: ignore only generated images

Make sure we can add other images without doing special things.
This commit is contained in:
Laurens Valk
2020-01-29 12:57:03 +01:00
parent d923f79506
commit 741af5280a
3 changed files with 5 additions and 6 deletions
+3 -2
View File
@@ -2,8 +2,9 @@
SRC_DIR = .
OUT_DIR = ../images
POSTFIX := _label
SVG := $(wildcard $(SRC_DIR)/*.svg)
PNG := $(patsubst $(SRC_DIR)/%.svg,$(OUT_DIR)/%.png,$(SVG))
PNG := $(patsubst $(SRC_DIR)/%.svg,$(OUT_DIR)/%$(POSTFIX).png,$(SVG))
DIR := ${CURDIR}
all: $(PNG)
@@ -11,5 +12,5 @@ all: $(PNG)
clean:
rm -f $(PNG)
$(OUT_DIR)/%.png: $(SRC_DIR)/%.svg
$(OUT_DIR)/%$(POSTFIX).png: $(SRC_DIR)/%.svg
inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@
+1 -3
View File
@@ -1,3 +1 @@
*.png
!pybricks-logo-large.png
!pybricks-logo-small.png
*_label.png
+1 -1
View File
@@ -5,7 +5,7 @@ See :numref:`fig_newproject`.
.. _fig_newproject:
.. figure:: images/newproject.png
.. figure:: images/newproject_label.png
:width: 90 %
:alt: newproject
:align: center