2016-09-15 10:57:58 -04:00
|
|
|
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
|
|
|
|
|
2016-09-15 12:12:34 -04:00
|
|
|
#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
|
|
|
|
|
2016-09-15 10:57:58 -04:00
|
|
|
narrow-svgs: pngs
|
|
|
|
mkdir -p narrow-svgs
|
|
|
|
for i in pngs/???.png ;\
|
|
|
|
do \
|
|
|
|
f=$$(basename "$$i") ;\
|
2016-09-15 12:12:34 -04:00
|
|
|
./createsvg.sh "$$i" "narrow-svgs/$${f%%.png}.svg" 6 8 ;\
|
2016-09-15 10:57:58 -04:00
|
|
|
done
|
|
|
|
touch narrow-svgs
|
|
|
|
|
2016-09-15 12:12:34 -04:00
|
|
|
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
|
|
|
|
|
2016-09-15 10:57:58 -04:00
|
|
|
MSX-Screen0.woff: msx-screen0.sfd
|
|
|
|
|
|
|
|
MSX-Screen0.ttf: msx-screen0.sfd
|
|
|
|
|
|
|
|
MSX-Screen1.woff: msx-screen1.sfd
|
|
|
|
|
|
|
|
MSX-Screen1.ttf: msx-screen1.sfd
|
2016-09-15 12:12:34 -04:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf narrow-svgs wide-svgs pngs
|