Debian Codegraph @

debian/console/Makefile

raw symbols SCIP
1 #!/usr/bin/make -f
2 # Paul Sladen 2011-09-27, Copyright 2011 Canonical Ltd. Released under the terms of the GNU GPLv3
3 WEIGHTS=R B RI BI
4 BASES=$(foreach WEIGHT,$(WEIGHTS),UbuntuMono-$(WEIGHT))
5
6 # These are hardcoded for the moment
7 # FONT_DESCENT = PPEM - FONT_DESCENT
8 # WIDTH = PPEM / 2
9 # AVERAGE_WIDTH = WIDTH * 10
10 HEIGHT=16
11 WIDTH=8
12 AVERAGE_WIDTH=80
13 FONT_DESCENT=3
14 WH=-$(WIDTH)x$(HEIGHT)
15
16 all: $(foreach BASE,$(BASES),$(BASE)$(WH).psf)
17 #all: $(foreach BASE,$(BASES),$(BASE)$(WH).psf $(BASE)$(WH).bdf $(BASE)$(WH).cp437.psf)
18
19 grub: $(foreach BASE,$(BASES),$(BASE)$(WH).pf2)
20
21 %$(WH).bdf: ../../%.ttf
22 otf2bdf -f 'Ubuntu Font Family' -t 'Ubuntu Mono' -c M -p $(HEIGHT) -r 72 $< | sed -e "s/\(AVERAGE_WIDTH\).*/\1 $(AVERAGE_WIDTH)/;s/\(FONT_DESCENT\).*/\1 $(FONT_DESCENT)/" > $@
23
24 #%.psf: %.bdf
25 # bdf2psf --fb $< /usr/share/bdf2psf/standard.equivalents /usr/share/bdf2psf/required.set+/usr/share/bdf2psf/useful.set 256 $@
26 # bdf2psf --fb $< /usr/share/bdf2psf/standard.equivalents debug.set+/usr/share/bdf2psf/required.set+/usr/share/bdf2psf/useful.set 256 $@
27
28 %.psf: %.bdf
29 bdf2psf --fb $< '' debug.set+cp437.set 256 $@
30
31 # sudo apt-get install grub-common for 'grub-mkfont'
32 %$(WH).pf2: ../../%.ttf
33 grub-mkfont -o $@ -s $(HEIGHT) -d 3 $<
34
35 setfont: UbuntuMono-R.psf
36 setfont $<
37
38 setfontbold: UbuntuMono-B.psf
39 setfont $<
40
41 clean:
42 -rm -f *.psf *.bdf *.pf2
43
44 build: all
45
46 .PHONY: all clean setfont build grub