Makefile 715 B

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