aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-06-24 22:27:53 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-06-24 22:27:53 +0200
commitbf4399b770db97788b328b908c696b943c16d747 (patch)
treef7b837f63a7a4bc1755b2d737a1ebac170275223 /Makefile
parent141fdad9501018e8b55ace5011a8717ad0ff4aed (diff)
Makefile: also build svg files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b265e7..4b9cea5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,18 @@ 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)
+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