font: separate rules to generate plane01-unassigned.hex
[unifont.git] / font / plane01 / Makefile
1
2 #
3 # Create the Plane 1 unassigned.hex file, with filler glyphs.
4 # Create filler glyphs in areas where Unicode scripts are not assigned;
5 # these are placed in directory "all/" so they are not included with
6 # the main font build, which reads "plane01/*.hex".
7 #
8 all: plane01.hex plane01-nonprinting.hex plane01-unassigned.hex
9         if [ ! -d all ]; then \
10                 mkdir all; \
11         fi
12         set -e && \
13            grep "^[0-9A-Fa-f]" noscript-ranges.txt | \
14            awk 'NF == 1 {print "../../bin/unihexgen " $$1 " " $$1;} \
15                 NF == 2 {print "../../bin/unihexgen " $$1 " " $$2;}' | \
16            /bin/sh -s > all/noscript.hex
17         sort -u all/noscript.hex *.hex > all/plane01-all.hex
18
19 plane01-unassigned.hex: unassigned-ranges.txt
20         set -e && \
21            grep "^[0-9A-Fa-f]" unassigned-ranges.txt | \
22            awk 'NF == 1 {print "../../bin/unihexgen " $$1 " " $$1;} \
23                 NF == 2 {print "../../bin/unihexgen " $$1 " " $$2;}' | \
24            /bin/sh -s > plane01-unassigned.hex
25
26 clean:
27
28 distclean:
29         \rm -rf all
30
31 .PHONY: all clean distclean