aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4b9cea56d514c19dccc8c9794bcfb7a80909a1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BUILDDIR = build
SRCDIR = src


PNG_TARGETS = $(patsubst $(SRCDIR)/%-source.svg,$(BUILDDIR)/%.png,$(wildcard $(SRCDIR)/*-source.svg))
SVG_TARGETS = $(patsubst $(SRCDIR)/%-source.svg,$(BUILDDIR)/%.svg,$(wildcard $(SRCDIR)/*-source.svg))

.PHONY: all clean
all: $(PNG_TARGETS) $(SVG_TARGETS)

$(BUILDDIR)/%.png: $(SRCDIR)/%-source.svg
	mkdir -p ${BUILDDIR}
	inkscape $< -i layer3 -j -C -e $@ -w 181 -h 209 -y 0

$(BUILDDIR)/%.svg: $(SRCDIR)/%-source.svg
	mkdir -p ${BUILDDIR}
	inkscape $< -i layer3 -j -C -l $@ -w 181 -h 209 -y 0

clean:
	rm -f ${BUILDDIR}/*.png ${BUILDDIR}/*.svg