mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
.POSIX:
|
|
|
|
DARKFID_JSONRPC = src/clients/darkfid_jsonrpc.md
|
|
|
|
all:
|
|
echo "# darkfid JSON-RPC API" > $(DARKFID_JSONRPC)
|
|
./build_jsonrpc.py ../bin/darkfid2/src/main.rs >> $(DARKFID_JSONRPC)
|
|
echo "## blockchain methods" >> $(DARKFID_JSONRPC)
|
|
./build_jsonrpc.py ../bin/darkfid2/src/rpc_blockchain.rs >> $(DARKFID_JSONRPC)
|
|
echo "## wallet methods" >> $(DARKFID_JSONRPC)
|
|
./build_jsonrpc.py ../bin/darkfid2/src/rpc_wallet.rs >> $(DARKFID_JSONRPC)
|
|
echo "## miscellaneous methods" >> $(DARKFID_JSONRPC)
|
|
./build_jsonrpc.py ../bin/darkfid2/src/rpc_misc.rs >> $(DARKFID_JSONRPC)
|
|
|
|
echo "# cashierd JSON-RPC API" > src/clients/cashierd_jsonrpc.md
|
|
./build_jsonrpc.py ../bin/cashierd/src/main.rs \
|
|
>> src/clients/cashierd_jsonrpc.md
|
|
|
|
echo "# faucetd JSON-RPC API" > src/clients/faucetd_jsonrpc.md
|
|
./build_jsonrpc.py ../bin/faucetd/src/main.rs \
|
|
>> src/clients/faucetd_jsonrpc.md
|
|
|
|
mdbook build
|
|
cp -f theme/logo* book/html/
|
|
|
|
clean:
|
|
rm -rf book
|
|
|
|
github: all
|
|
ghp-import -m "Generate mdbook" -b gh-pages book/html
|
|
|
|
.PHONY: all clean github
|