2017-01-23 01:05:27 +01:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
|
|
|
# Designed to be run one level up
|
|
|
|
doc-wrongdir:
|
|
|
|
$(MAKE) -C .. doc-all
|
|
|
|
|
|
|
|
MANPAGES := doc/lightning-cli.1 \
|
2018-05-17 06:46:22 +02:00
|
|
|
doc/lightningd-config.5 \
|
2018-03-17 16:12:37 +01:00
|
|
|
doc/lightning-autocleaninvoice.7 \
|
2018-12-07 18:31:16 +01:00
|
|
|
doc/lightning-check.7 \
|
2018-04-10 08:03:15 +02:00
|
|
|
doc/lightning-close.7 \
|
2018-04-26 12:22:09 +02:00
|
|
|
doc/lightning-connect.7 \
|
2018-01-13 12:21:33 +01:00
|
|
|
doc/lightning-decodepay.7 \
|
2018-02-26 13:37:53 +01:00
|
|
|
doc/lightning-delexpiredinvoice.7 \
|
2017-01-23 01:05:27 +01:00
|
|
|
doc/lightning-delinvoice.7 \
|
2018-12-03 06:20:25 +01:00
|
|
|
doc/lightning-disconnect.7 \
|
2018-05-03 16:54:39 +02:00
|
|
|
doc/lightning-fundchannel.7 \
|
2017-01-23 01:05:27 +01:00
|
|
|
doc/lightning-getroute.7 \
|
|
|
|
doc/lightning-invoice.7 \
|
2019-01-07 20:09:59 +01:00
|
|
|
doc/lightning-listchannels.7 \
|
2018-04-26 12:22:09 +02:00
|
|
|
doc/lightning-listfunds.7 \
|
2018-01-16 21:28:46 +01:00
|
|
|
doc/lightning-listinvoices.7 \
|
2019-02-23 06:00:04 +01:00
|
|
|
doc/lightning-listpays.7 \
|
2018-12-05 22:38:07 +01:00
|
|
|
doc/lightning-listpeers.7 \
|
2019-02-23 06:00:04 +01:00
|
|
|
doc/lightning-listsendpays.7 \
|
2018-04-26 12:22:09 +02:00
|
|
|
doc/lightning-newaddr.7 \
|
2018-01-13 12:21:33 +01:00
|
|
|
doc/lightning-pay.7 \
|
2017-01-23 01:05:27 +01:00
|
|
|
doc/lightning-sendpay.7 \
|
2017-01-23 01:09:43 +01:00
|
|
|
doc/lightning-waitinvoice.7 \
|
2018-03-08 01:19:55 +01:00
|
|
|
doc/lightning-waitanyinvoice.7 \
|
2018-04-26 12:12:17 +02:00
|
|
|
doc/lightning-waitsendpay.7 \
|
2018-04-26 12:22:09 +02:00
|
|
|
doc/lightning-withdraw.7
|
2017-01-23 01:05:27 +01:00
|
|
|
|
|
|
|
doc-all: $(MANPAGES)
|
|
|
|
|
|
|
|
$(MANPAGES): doc/%: doc/%.txt
|
|
|
|
@if $(CHANGED_FROM_GIT); then echo a2x --format=manpage $<; a2x --format=manpage $<; else touch $@; fi
|
|
|
|
|
|
|
|
doc/protocol-%.svg: test/test_protocol
|
|
|
|
test/test_protocol --svg < test/commits/$*.script > $@
|
|
|
|
|
|
|
|
protocol-diagrams: $(patsubst %.script, doc/protocol-%.svg, $(notdir $(wildcard test/commits/*.script)))
|
|
|
|
|
|
|
|
doc/deployable-lightning.pdf: doc/deployable-lightning.lyx doc/bitcoin.bib
|
|
|
|
lyx -E pdf $@ $<
|
|
|
|
|
|
|
|
doc/deployable-lightning.tex: doc/deployable-lightning.lyx
|
|
|
|
lyx -E latex $@ $<
|
|
|
|
|
|
|
|
state-diagrams: doc/normal-states.svg doc/simplified-states.svg doc/error-states.svg doc/full-states.svg
|
|
|
|
|
|
|
|
%.svg: %.dot
|
|
|
|
dot -Tsvg $< > $@ || (rm -f $@; false)
|
|
|
|
|
|
|
|
doc/simplified-states.dot: test/test_state_coverage
|
|
|
|
test/test_state_coverage --dot --dot-simplify > $@
|
|
|
|
|
|
|
|
doc/normal-states.dot: test/test_state_coverage
|
|
|
|
test/test_state_coverage --dot > $@
|
|
|
|
|
|
|
|
doc/error-states.dot: test/test_state_coverage
|
|
|
|
test/test_state_coverage --dot-all --dot-include-errors > $@
|
|
|
|
|
|
|
|
doc/full-states.dot: test/test_state_coverage
|
|
|
|
test/test_state_coverage --dot-all --dot-include-errors --dot-include-nops > $@
|
|
|
|
|
|
|
|
maintainer-clean: doc-maintainer-clean
|
|
|
|
clean: doc-clean
|
2018-05-17 06:46:22 +02:00
|
|
|
check: check-manpages
|
|
|
|
|
|
|
|
check-manpages: cli/lightning-cli lightningd/lightningd
|
|
|
|
@tools/check-manpage.sh cli/lightning-cli doc/lightning-cli.1.txt
|
|
|
|
@tools/check-manpage.sh lightningd/lightningd doc/lightningd-config.5.txt
|
2017-01-23 01:05:27 +01:00
|
|
|
|
|
|
|
doc-maintainer-clean:
|
|
|
|
$(RM) doc/deployable-lightning.pdf
|
|
|
|
$(RM) $(MANPAGES)
|
|
|
|
|
|
|
|
doc-clean:
|
|
|
|
$(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex}
|
|
|
|
|