An SVG graphic of a gem.
svg
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

makefile 448B

12345678910111213141516171819202122232425
  1. WIDTH=600
  2. COLORS=cf7e03 e41131 102298 111011
  3. allpng: $(foreach color, $(COLORS), out/gem-$(color).png)
  4. allsvg: $(foreach color, $(COLORS), out/gem-$(color).svg)
  5. all: allpng allsvg
  6. out/gem-%.png: src/gem.svg | out
  7. sed "s/%COLOR%/#$*/" $< > out/gemtemp.svg
  8. inkscape -w $(WIDTH) -e $@ out/gemtemp.svg
  9. rm out/gemtemp.svg
  10. out/gem-%.svg: src/gem.svg | out
  11. sed "s/%COLOR%/#$*/" $< > $@
  12. out:
  13. mkdir -p out
  14. clean:
  15. rm -r out
  16. .PHONY: all clean