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-03-17 16:12:37 +01:00
|
|
|
doc/lightning-autocleaninvoice.7 \
|
2018-04-10 08:03:15 +02:00
|
|
|
doc/lightning-close.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 \
|
|
|
|
doc/lightning-getroute.7 \
|
|
|
|
doc/lightning-invoice.7 \
|
2018-01-16 21:28:46 +01:00
|
|
|
doc/lightning-listinvoices.7 \
|
2018-01-13 12:21:33 +01:00
|
|
|
doc/lightning-listpayments.7 \
|
|
|
|
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 \
|
|
|
|
doc/lightning-waitsendpay.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
|
|
|
|
|
|
|
|
doc-maintainer-clean:
|
|
|
|
$(RM) doc/deployable-lightning.pdf
|
|
|
|
$(RM) $(MANPAGES)
|
|
|
|
|
|
|
|
doc-clean:
|
|
|
|
$(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex}
|
|
|
|
|