msx-font/Makefile
2016-09-15 12:18:14 -04:00

56 lines
1.2 KiB
Makefile

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
unicode2msx.txt: msx2utf8.py
./msx2utf8.py -l | awk '{ print $$2" "$$1 }' > unicode2msx.txt
msx-screen0.sfd msx-screen0.woff: svgs unicode2msx.txt importchars.py
fontforge -script importchars.py unicode-to-msx.txt narrow-svgs/ msx-screen0.sfd msx-screen0.woff
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