summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-04-19 20:54:01 +0200
committerAlejandro Colomar <alx@kernel.org>2024-04-26 01:04:05 +0200
commitdd344c01c4324a9097dda944f7ed264c813f3c2a (patch)
tree50ac92641a58f510c85851c6a727aaebf5e8ceaf
parent5c8efa4ed85cb46e58feb7618acfd7abbaac544e (diff)
share/mk/: build-pdf-book: Use Unifont
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--share/mk/build/pdf/book/_.mk6
-rwxr-xr-xshare/mk/build/pdf/book/prepare.pl2
2 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/build/pdf/book/_.mk b/share/mk/build/pdf/book/_.mk
index 03595f685..182316db5 100644
--- a/share/mk/build/pdf/book/_.mk
+++ b/share/mk/build/pdf/book/_.mk
@@ -10,6 +10,7 @@ include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/build/man/_.mk
include $(MAKEFILEDIR)/build/fonts/_.mk
include $(MAKEFILEDIR)/build/fonts/tinos/_.mk
+include $(MAKEFILEDIR)/build/fonts/unifont/_.mk
include $(MAKEFILEDIR)/configure/build-depends/coreutils/cat.mk
include $(MAKEFILEDIR)/configure/build-depends/groff/gropdf.mk
include $(MAKEFILEDIR)/configure/build-depends/groff-base/eqn.mk
@@ -30,7 +31,10 @@ _PDFDIR := $(builddir)
_PDF_BOOK := $(_PDFDIR)/$(PDF_BOOK)
-$(_PDF_BOOK): $(_MANPAGES) $(_DOWNLOAD) $(_TINOS) $(MKBOOK) $(MK) | $$(@D)/
+_FONTS := $(_TINOS) $(_UNIFONT)
+
+
+$(_PDF_BOOK): $(_MANPAGES) $(_DOWNLOAD) $(_FONTS) $(MKBOOK) $(MK) | $$(@D)/
$(info $(INFO_)GROPDF $@)
$(MKBOOKDIR)/prepare.pl $(_MANDIR) \
| $(CAT) $(MKBOOKDIR)/front.roff /dev/stdin \
diff --git a/share/mk/build/pdf/book/prepare.pl b/share/mk/build/pdf/book/prepare.pl
index a0740827e..142738fa5 100755
--- a/share/mk/build/pdf/book/prepare.pl
+++ b/share/mk/build/pdf/book/prepare.pl
@@ -82,7 +82,7 @@ BuildBook();
sub BuildBook
{
- print ".pdfpagenumbering D . 1\n.nr PDFOUTLINE.FOLDLEVEL 0\n.defcolor pdf:href.colour rgb 0.00 0.25 0.75\n.pdfinfo /Title \"The Linux man-pages Book\"\n.special TinosR S\n";
+ print ".pdfpagenumbering D . 1\n.nr PDFOUTLINE.FOLDLEVEL 0\n.defcolor pdf:href.colour rgb 0.00 0.25 0.75\n.pdfinfo /Title \"The Linux man-pages Book\"\n.special TinosR UnifontR S\n";
foreach my $bkmark (sort sortman keys %files) {
BuildPage($bkmark);