From 529630a453f94330dcfccfc099e0ae41de260d6e Mon Sep 17 00:00:00 2001 From: darosior Date: Sat, 10 Aug 2019 13:24:33 +0200 Subject: [PATCH] doc/Makefile: update readthedocs pages on doc-all Stolen from @rustyrussell's #2928 --- doc/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/Makefile b/doc/Makefile index ab94d89a3..0c5350cfd 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -41,7 +41,7 @@ MANPAGES := doc/lightning-cli.1 \ doc/lightning-waitsendpay.7 \ doc/lightning-withdraw.7 -doc-all: $(MANPAGES) +doc-all: $(MANPAGES) doc/index.rst $(MANPAGES): doc/%: doc/%.md @if $(CHANGED_FROM_GIT); then echo mrkd $<; mrkd $<; else touch $@; fi @@ -89,3 +89,7 @@ doc-maintainer-clean: doc-clean: $(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex} +doc/index.rst: + (grep -v '^ lightning.*\.[0-9]\.md$$' $@; for m in $$(cd doc && ls lightning*.[0-9].md); do echo " $$m"; done) > $@.tmp.$$$$ && mv $@.tmp.$$$$ $@ + +.PHONY: doc/index.rst