Makefile 906 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .POSIX:
  2. DARKFID_JSONRPC = src/clients/darkfid_jsonrpc.md
  3. CASHIERD_JSONRPC = src/clients/cashierd_jsonrpc.md
  4. FAUCETD_JSONRPC = src/clients/faucetd_jsonrpc.md
  5. JSONRPC = \
  6. $(DARKFID_JSONRPC) \
  7. $(CASHIERD_JSONRPC) \
  8. $(FAUCETD_JSONRPC)
  9. all: $(JSONRPC)
  10. mdbook build
  11. cp -f theme/logo* book/
  12. $(MAKE) -C ../ rustdoc
  13. cp -r ../target/doc/* book/development/
  14. $(DARKFID_JSONRPC):
  15. @echo "# darkfid JSON-RPC API" > $@
  16. @for i in blockchain tx wallet misc; do \
  17. echo "## $$i methods" >> $@ ;\
  18. ./build_jsonrpc.py ../bin/darkfid/src/rpc_$$i.rs >> $@ ;\
  19. done
  20. $(CASHIERD_JSONRPC):
  21. @echo "# cashierd JSON-RPC API" > $@
  22. @./build_jsonrpc.py ../bin/cashierd/src/main.rs >> $@
  23. $(FAUCETD_JSONRPC):
  24. @echo "# faucetd JSON-RPC API" > $@
  25. @./build_jsonrpc.py ../bin/faucetd/src/main.rs >> $@
  26. clean:
  27. rm -rf book
  28. github: all
  29. ghp-import -m "Generate mdbook" -b gh-pages book/
  30. .PHONY: $(JSONRPC) all clean github