Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 %:
3 dh $@
4
5 # Reassure blhc that TTX isn't running a C compiler behind its back.
6 execute_before_dh_auto_build:
7 @echo blhc: ignore-line-regexp: \
8 '^Compiling ".+\.ttx" to ".+\.otf"\.\.\.$$'
9
10 override_dh_compress:
11 dh_compress -X.pdf
12
13 ### Build X fonts from upstream BDFs.
14
15 PCFGZS = bedstead-10.pcf.gz bedstead-20.pcf.gz bedstead-bold-20.pcf.gz
16
17 %.pcf: %.bdf
18 bdftopcf -t -o $@ $<
19
20 %.pcf.gz: %.pcf
21 gzip -9nk $<
22
23 ### Build console fonts from upstream BDFs.
24
25 # We restrict ourselves to codesets that are reasonably well-covered
26 # by Bedstead.
27
28 SMALL_CODESETS = CyrKoi CyrSlav Greek Hebrew Lat15 Lat2 Lat38
29 FULL_CODESETS = FullCyrSlav FullGreek
30 LARGE_CODESETS = Uni2
31
32 CODESETS = $(SMALL_CODESETS) $(LARGE_CODESETS) \
33 $(addprefix Full, $(FULL_CODESETS))
34
35 SMALL_PSFS = $(addsuffix -Bedstead20x12.psf,$(SMALL_CODESETS)) \
36 $(addsuffix -Bedstead10x6.psf,$(SMALL_CODESETS))
37 FULL_PSFS = $(addsuffix -Bedstead20x12.psf,$(FULL_CODESETS)) \
38 $(addsuffix -Bedstead10x6.psf,$(FULL_CODESETS))
39 LARGE_PSFS = $(addsuffix -Bedstead20x12.psf,$(LARGE_CODESETS)) \
40 $(addsuffix -Bedstead10x6.psf,$(LARGE_CODESETS))
41 PSFS = $(SMALL_PSFS) $(FULL_PSFS) $(LARGE_PSFS)
42 PSFGZS = $(addsuffix .gz,$(PSFS))
43
44 B2PDIR = /usr/share/bdf2psf
45
46 $(SMALL_PSFS): size = 256
47 $(LARGE_PSFS) $(FULL_PSFS): size = 512
48 $(SMALL_PSFS): fontset = $(B2PDIR)/fontsets/$*.256
49 $(FULL_PSFS): fontset = $(B2PDIR)/fontsets/$(subst Full,,$*).256
50 $(LARGE_PSFS): fontset = $(B2PDIR)/fontsets/$*.512
51 $(SMALL_PSFS) $(LARGE_PSFS): equivs = $(B2PDIR)/standard.equivalents
52 $(FULL_PSFS): equivs = /dev/null
53
54 symbols = $(B2PDIR)/ascii.set+$(B2PDIR)/linux.set+$(fontset)+:$(B2PDIR)/useful.set
55
56 %-Bedstead20x12.psf: bedstead-20.bdf
57 bdf2psf --fb bedstead-20.bdf $(equivs) $(symbols) $(size) $@
58 %-Bedstead10x6.psf: bedstead-10.bdf
59 bdf2psf --fb bedstead-10.bdf $(equivs) $(symbols) $(size) $@
60
61 %.psf.gz: %.psf
62 gzip -9nk $<
63
64
65 execute_after_dh_auto_build: $(PCFGZS) $(PSFGZS)
66 true