Skip to content

Commit

Permalink
doc/Makefile: update readthedocs pages on doc-all
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior authored and rustyrussell committed Aug 22, 2019
1 parent 77f34fa commit 529630a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 529630a

Please sign in to comment.