summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-03-29 18:36:40 +0100
committerAlejandro Colomar <alx@kernel.org>2024-03-29 19:59:51 +0100
commitf49a7e49c579a46513161e42051c344c622833c3 (patch)
tree9d72f918c5b021901a91c9f7e8eb7d765d96f32c
parentb0ba6987324112e47e3b53292253a4c879291704 (diff)
share/mk/: Useful Use of Cat
Simplify a pipeline, by using cat(1) to actually catenate stuff. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--share/mk/build/pdf/book/_.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/share/mk/build/pdf/book/_.mk b/share/mk/build/pdf/book/_.mk
index dc43124b0..3395e67e9 100644
--- a/share/mk/build/pdf/book/_.mk
+++ b/share/mk/build/pdf/book/_.mk
@@ -32,11 +32,8 @@ _PDF_BOOK := $(_PDFDIR)/$(PDF_BOOK)
$(_PDF_BOOK): $(_MANPAGES) $(_TINOS) $(MKBOOK) $(MK) | $$(@D)/
$(info $(INFO_)GROPDF $@)
- ( \
- $(CAT) $(MKBOOKDIR)/front.roff; \
- $(CAT) $(MKBOOKDIR)/an.tmac; \
- $(MKBOOKDIR)/prepare.pl $(_MANDIR); \
- ) \
+ $(MKBOOKDIR)/prepare.pl $(_MANDIR) \
+ | $(CAT) $(MKBOOKDIR)/front.roff $(MKBOOKDIR)/an.tmac /dev/stdin \
| $(PRECONV) \
| $(PIC) \
| $(TBL) \