aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 44fa7f080e19c7f56e2ce8701a8791436ed138e7 (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 166 -h 192 -y 0

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

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