diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-03-24 12:55:15 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-03-24 13:14:24 +0100 |
commit | 4e21945517abbffbc4b0daeeb7a54747fa55e059 (patch) | |
tree | c30b3268ac5fb081f3f6bdb0d4017aee42b0f661 /share | |
parent | 6f2143f17bea41f7dc886b27705ede7f6f818ad7 (diff) |
share/mk/, scripts/LinuxManBook/build.sh: Embed script in the makefiles
This is done for simplifying, and as a side effect, it also allows
much more control on the script (e.g., TROFFFLAGS).
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/build/book.mk | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/share/mk/build/book.mk b/share/mk/build/book.mk index 761334fd3..5b2bf0ef6 100644 --- a/share/mk/build/book.mk +++ b/share/mk/build/book.mk @@ -20,7 +20,6 @@ include $(MAKEFILEDIR)/configure/version.mk LMBDIR := $(CURDIR)/scripts/LinuxManBook -BUILDLMB := $(LMBDIR)/build.sh BOOK := $(DISTNAME).pdf @@ -29,15 +28,18 @@ _BOOK := $(_BOOKDIR)/$(BOOK) $(_BOOK): $(_MANPAGES) $(wildcard $(LMBDIR)/* $(LMBDIR)/*/*) | $$(@D)/ - $(info $(INFO_)Build $@) - CAT='$(CAT)' \ - PRECONV='$(PRECONV)' \ - PIC='$(PIC)' \ - TBL='$(TBL)' \ - EQN='$(EQN)' \ - TROFF='$(TROFF)' \ - GROPDF='$(GROPDF)' \ - $(BUILDLMB) $(_MANDIR) \ + $(info $(INFO_)GROPDF $@) + ( \ + $(CAT) "$(LMBDIR)"/LMBfront.roff; \ + $(CAT) "$(LMBDIR)"/an.tmac; \ + "$(LMBDIR)"/prepare.pl "$(_MANDIR)"; \ + ) \ + | $(PRECONV) \ + | $(PIC) \ + | $(TBL) \ + | $(EQN) -Tpdf \ + | $(TROFF) -Tpdf -F"$(LMBDIR)" -dpaper=a4 $(TROFFFLAGS) \ + | $(GROPDF) -F"$(LMBDIR)" -pa4 $(GROPDFFLAGS) \ | $(SPONGE) $@ |