Unverified Commit 2ec72fdc authored by eisfunke's avatar eisfunke
Browse files

Update makefile to generate arbitrary colors

parent 5fc66dfb
WIDTH=500
WIDTH=600
out/%.png: src/%.svg
inkscape -w $(WIDTH) -e $@ $<
COLORS=cf7e03 e41131 102298 111011
ALL=$(foreach color, $(COLORS), out/gem-$(color).png)
all: $(ALL)
out/gem-%.png: src/gem.svg | out
sed "s/%COLOR%/#$*/" $< > out/gemtemp.svg
inkscape -w $(WIDTH) -e $@ out/gemtemp.svg
rm out/gemtemp.svg
out:
mkdir -p out
clean:
rm -r out
.PHONY: all clean
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment