From 48b9922071c6e338a3ab6ebdea01fc57940cd7f8 Mon Sep 17 00:00:00 2001 From: "Y. Wang" Date: Wed, 10 Aug 2022 14:33:33 +0200 Subject: Add "SEE ALSO" section to manual pages where applicable --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7beb1fc..ba1a371 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ MAN_PATH = $(MANUAL_ROOT)/man MAN_SRCS = $(wildcard $(MAN_PATH)/*/*.md) MAN_DSTS = $(MAN_SRCS:%.md=%) MAN_TEXS = $(MAN_SRCS:%.md=%.tex) +MAN_FILTER = $(MANUAL_ROOT)/filter_man.lua TEX_PATH = $(MANUAL_ROOT)/tex MAN_TEX = $(TEX_PATH)/man.tex @@ -26,11 +27,11 @@ doc-pdf: $(TEX_MAIN_DSTS) doc-man: $(MAN_DSTS) find assets/manual/man -regex '.*/[^.]+\.[^.]+$$' | tar -cJf ${MANUAL_ROOT}/man.tar.xz -T - -%:: %.md - $(PANDOC) -s -t man -o $@ $< +%:: %.md ${MAN_FILTER} + $(PANDOC) -L ${MAN_FILTER} -s -t man -o $@ $< $(MAN_TEX): $(MAN_TEXS) find $(MAN_PATH) -name '*.tex' -printf '\\input{../man/%P}\n' | sort > $(MAN_TEX) -%.tex:: %.md ${MANUAL_ROOT}/filter_man_md2tex.lua - $(PANDOC) -L ${MANUAL_ROOT}/filter_man_md2tex.lua -t latex -o $@ $< +%.tex:: %.md ${MAN_FILTER} + $(PANDOC) -L ${MAN_FILTER} -t latex -o $@ $< -- cgit v1.2.3