aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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