diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2016-06-24 22:27:53 +0200 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2016-06-24 22:27:53 +0200 | 
| commit | bf4399b770db97788b328b908c696b943c16d747 (patch) | |
| tree | f7b837f63a7a4bc1755b2d737a1ebac170275223 | |
| parent | 141fdad9501018e8b55ace5011a8717ad0ff4aed (diff) | |
Makefile: also build svg files
| -rw-r--r-- | Makefile | 7 | 
1 files changed, 6 insertions, 1 deletions
@@ -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  | 
