Makefile 711 B

1234567891011121314151617181920212223242526272829
  1. SIZES = 25 50 100 200
  2. IMGS = max80.svg
  3. REDUCE = -colors 4
  4. all: Prisma-MAX.woff2 Charm-Bold-PoP.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. Charm-Bold-PoP.woff2: Charm-Bold.ttf
  15. pyftsubset $< --output-file=$@ --text='Peter & Per' \
  16. --desubroutinize --flavor=woff2 --recalc-bounds
  17. clean:
  18. for f in $(patsubst %.svg,%,$(IMGS)); do rm -f "$$f"-*.png; done
  19. rm -f Prisma-MAX.woff2
  20. spotless: clean