summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerris Tseng <ferris@navapbc.com>2020-05-16 15:55:19 -0400
committerFerris Tseng <ferris@navapbc.com>2020-05-16 15:55:19 -0400
commit9606def3a8f6dcce72c4fc808d45b41872e70d8c (patch)
tree2cad47b87b617bcbd5a01c75b1f834049237bf35
parentb061e8d914906d3eea3e7b6b5a35afd049a84e5b (diff)
downloadrust-ipfs-api-9606def3a8f6dcce72c4fc808d45b41872e70d8c.tar.gz
rust-ipfs-api-9606def3a8f6dcce72c4fc808d45b41872e70d8c.tar.xz
create make target for readme
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5c49d85
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+SHELL := /bin/bash
+
+IPFS_API_PATH := ipfs-api
+
+CARGO_BIN := $(shell which cargo)
+
+WORKSPACE_CARGO_FILE := Cargo.toml
+
+README.md: README.tpl $(WORKSPACE_CARGO_FILE) $(IPFS_API_PATH)/src/lib.rs
+ $(CARGO_BIN) readme -r $(IPFS_API_PATH) -t ../README.tpl -o ../$@