all: MSX-Screen0.woff MSX-Screen0.ttf MSX-Screen1.woff MSX-Screen1.ttf pngs: characters.png mkdir -p pngs gm convert -crop 8x8 characters.png +adjoin pngs/%03d.png touch pngs #PNGS=$(wildcard pngs/*.png) #SVGS=$(patsubst pngs/%.png, %.svg, $(PNGS)) # #%.svg: pngs/%.png | pngs # echo $@ $< # #$(SVGS): %.svg: pngs/%.png | pngs # echo $@ $< # touch "$@" svgs: narrow-svgs wide-svgs narrow-svgs: pngs mkdir -p narrow-svgs for i in pngs/???.png ;\ do \ f=$$(basename "$$i") ;\ ./createsvg.sh "$$i" "narrow-svgs/$${f%%.png}.svg" 6 8 ;\ done touch narrow-svgs wide-svgs: pngs mkdir -p wide-svgs for i in pngs/???.png ;\ do \ f=$$(basename "$$i") ;\ ./createsvg.sh "$$i" "wide-svgs/$${f%%.png}.svg" 8 8 ;\ done touch wide-svgs MSX-Screen0.woff: msx-screen0.sfd MSX-Screen0.ttf: msx-screen0.sfd MSX-Screen1.woff: msx-screen1.sfd MSX-Screen1.ttf: msx-screen1.sfd .PHONY: clean clean: rm -rf narrow-svgs wide-svgs pngs