+
+#
+# Create the .bmp (Bitmap Graphics) versions of the glyphs.
+#
+bmp: hex $(BINDIR)/unihex2bmp
+ if [ ! -d $(BMPDIR) ] ; then \
+ mkdir -p $(BMPDIR) ; \
+ fi
+ if [ ! -d $(BMPDIR)/plane00 ] ; then \
+ mkdir -p $(BMPDIR)/plane00 ; \
+ fi
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2bmp -p00$$i$$j \
+ < $(COMPILED_DIR)/unifont_sample-$(VERSION).hex \
+ > $(BMPDIR)/plane00/uni00$$i$$j.bmp ; \
+ done ; \
+ done
+ if [ ! -d $(BMPDIR)/plane01 ] ; then \
+ mkdir -p $(BMPDIR)/plane01 ; \
+ fi
+ # Generate files in plane01/all directory to create PNG files.
+ (cd plane01 && make)
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2bmp -p01$$i$$j \
+ < plane01/all/plane01-all.hex \
+ > $(BMPDIR)/plane01/uni01$$i$$j.bmp ; \
+ done ; \
+ done
+ if [ ! -d $(BMPDIR)/plane0E ] ; then \
+ mkdir -p $(BMPDIR)/plane0E ; \
+ fi
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2bmp -p0E$$i$$j \
+ < $(COMPILED_DIR)/unifont_upper_sample-$(VERSION).hex \
+ > $(BMPDIR)/plane0E/uni0E$$i$$j.bmp ; \
+ done ; \
+ done
+ if [ ! -d $(BMPDIR)/csur ] ; then \
+ mkdir -p $(BMPDIR)/csur ; \
+ fi
+ for i in E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF \
+ F0 F1 F2 F3 F4 F5 F6 F7 F8 ; do \
+ $(BINDIR)/unihex2bmp -p00$$i \
+ < $(COMPILED_DIR)/unifont_csur_sample-$(VERSION).hex \
+ > $(BMPDIR)/csur/uni00$$i.bmp ; \
+ done
+ for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ for j in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do \
+ $(BINDIR)/unihex2bmp -p0F$$i$$j \
+ < $(COMPILED_DIR)/unifont_csur_sample-$(VERSION).hex \
+ > $(BMPDIR)/csur/uni0F$$i$$j.bmp ; \
+ done ; \
+ done
+ # Create HTML table showing color-coded percent coverage in Plane 0.
+ $(BINDIR)/unipagecount -h < $(COMPILED_DIR)/unifont-$(VERSION).hex \
+ > $(COMPILED_DIR)/plane00.html
+ sed -i 's/png/bmp/g' $(COMPILED_DIR)/plane00.html ; \
+ # Create HTML table showing color-coded percent coverage in Plane 01.
+ ../bin/unipagecount -P1 -h < plane01/all/plane01-all.hex \
+ > $(COMPILED_DIR)/plane01.html
+ sed -i 's/png/bmp/g' $(COMPILED_DIR)/plane01.html ; \
+ echo "Done creating $(BMPDIR)"
+
+