blob: a941cede19ef3d4302b1b2b2b846d3062f4419d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2023-2024, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
ifndef MAKEFILE_BUILD_BOOK_INCLUDED
MAKEFILE_BUILD_BOOK_INCLUDED := 1
include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk
include $(MAKEFILEDIR)/configure/build-depends/groff.mk
include $(MAKEFILEDIR)/configure/build-depends/groff-base.mk
include $(MAKEFILEDIR)/configure/build-depends/moreutils.mk
include $(MAKEFILEDIR)/configure/src.mk
include $(MAKEFILEDIR)/src.mk
LMBDIR := $(srcdir)/scripts/LinuxManBook
BUILDLMB := $(LMBDIR)/build.sh
_LMB := $(_MANDIR)/man-pages.pdf
$(_LMB): $(MANPAGES) $(wildcard $(LMBDIR)/* $(LMBDIR)/*/*) | $$(@D)/
$(info $(INFO_)Build $@)
CAT='$(CAT)' \
PRECONV='$(PRECONV)' \
PIC='$(PIC)' \
TBL='$(TBL)' \
EQN='$(EQN)' \
TROFF='$(TROFF)' \
GROPDF='$(GROPDF)' \
$(BUILDLMB) $(MANDIR) \
| $(SPONGE) $@
.PHONY: build-book
build-book: $(_LMB);
endif # include guard
|