Makefile 548 B

1234567891011121314151617181920212223242526
  1. SIZES = 25 50 100 200
  2. IMGS = max80.svg
  3. REDUCE = -colors 4
  4. all: Prisma-MAX.woff2
  5. for f in $(SIZES); do $(MAKE) SIZE=$$f imgs; done
  6. imgs: $(patsubst %.svg,%-$(SIZE).png,$(IMGS))
  7. %-$(SIZE).png: %.svg
  8. convert -antialias -resize x$(SIZE) $< \
  9. $(REDUCE) -auto-level \
  10. -negate -alpha copy -negate $@
  11. Prisma-MAX.woff2: Prisma.otf
  12. pyftsubset $< --output-file=$@ --text='MAX' \
  13. --desubroutinize --flavor=woff2 --recalc-bounds
  14. clean:
  15. for f in $(patsubst %.svg,%,$(IMGS)); do rm -f "$$f"-*.png; done
  16. rm -f Prisma-MAX.woff2
  17. spotless: clean