From ccf4277f907c50cdcff11cd56930ea08f6e031d2 Mon Sep 17 00:00:00 2001 From: Xian Date: Thu, 19 Dec 2024 18:23:17 +0100 Subject: [PATCH] Make two md man pages, one for the wiki and one for the actual man page --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 854a20de5b..237c72a0c1 100644 --- a/Makefile +++ b/Makefile @@ -546,11 +546,15 @@ docs: $(SRC_DIR)/*.cpp $(SRC_DIR)/*.hpp $(ALGORITHMS_SRC_DIR)/*.cpp $(ALGORITHMS man: doc/wiki/vg-manpage.md doc/man/vg.1 -doc/wiki/vg-manpage.md: $(BIN_DIR)/$(EXE) doc/vgmanmd.desc.md doc/vgmanmd.py - ./doc/vgmanmd.py > $@.tmp && mv $@.tmp $@ +#The manpage markdown has an extra line needed for the actual manpage format +doc/man/vg-manpage.md: $(BIN_DIR)/$(EXE) doc/vgmanmd.desc.md doc/vgmanmd.py + mkdir -p doc/man && ./doc/vgmanmd.py > $@.tmp && mv $@.tmp $@ -doc/man/vg.1: doc/wiki/vg-manpage.md - mkdir -p doc/man && pandoc --standalone --to man $< -o $@ +doc/wiki/vg-manpage.md: doc/man/vg-manpage.md + sed 1d doc/man/vg-manpage.md > $@ + +doc/man/vg.1: doc/man/vg-manpage.md + pandoc --standalone --to man $< -o $@ # Hack to use gshuf or shuf as appropriate to the platform when testing $(BIN_DIR)/shuf: