unifont-7.0.04.tar.gz
[unifont.git] / font / Makefile
index 39b820bb2b9ee0e9167d1d396619bba975dcc273..345c00c76370d8bf350ef8c08b95b445a24e66b9 100644 (file)
@@ -18,7 +18,7 @@ FONTFORGE = fontforge
 # assembly date of this version
 #
 UNICODE_VERSION = 7.0
-PKG_REV = 01
+PKG_REV = 04
 VERSION = $(UNICODE_VERSION).$(PKG_REV)
 
 COPYRIGHT = "Copyright (C) 2014 Roman Czyborra, Paul Hardy, Qianqian Fang, \
@@ -284,10 +284,12 @@ png: hex $(BINDIR)/unihex2png
        if [ ! -d $(PNGDIR)/plane01 ] ; then \
           mkdir -p $(PNGDIR)/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)/unihex2png -p 01$$i$$j \
-                -i $(COMPILED_DIR)/unifont_upper_sample-$(VERSION).hex \
+                -i plane01/all/plane01-all.hex \
                 -o $(PNGDIR)/plane01/uni01$$i$$j.png ; \
           done ; \
        done
@@ -304,12 +306,11 @@ png: hex $(BINDIR)/unihex2png
        if [ ! -d $(PNGDIR)/csur ] ; then \
           mkdir -p $(PNGDIR)/csur ; \
        fi
-       for i in E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA DB EB EC ED EE EF \
+       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)/unihex2png -p 00$$i \
                 -i $(COMPILED_DIR)/unifont_csur_sample-$(VERSION).hex \
                 -o $(PNGDIR)/csur/uni00$$i.png ; \
-          done ; \
        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 \
@@ -318,6 +319,9 @@ png: hex $(BINDIR)/unihex2png
                 -o $(PNGDIR)/csur/uni0F$$i$$j.png ; \
           done ; \
        done
+       # Create HTML table showing color-coded percent coverage in Plane 01.
+       ../bin/unipagecount -P1 -h < plane01/all/plane01-all.hex \
+          > plane01.html
        echo "Done creating $(PNGDIR)"
 
 #
@@ -524,6 +528,7 @@ clean:
 #
 distclean:
        \rm -rf $(COMPILED_DIR)
+       $(MAKE) -C plane01 distclean
        $(MAKE) -C ttfsrc distclean
        \rm -f *~
        \rm -rf .DS* ._.DS*