From c9f94500da79ce22bde23ff98ae53487e126325c Mon Sep 17 00:00:00 2001 From: Thorsten Hans Date: Tue, 5 Mar 2024 07:13:23 +0100 Subject: [PATCH 1/2] chore: Add Makefile and document how to build/install Signed-off-by: Thorsten Hans --- Makefile | 7 +++++++ README.md | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a9c310f --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: build +build: + cargo build --release + +.PHONY: install +install: + cargo install --path . --locked diff --git a/README.md b/README.md index 0eb538f..f4e1f24 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ The WebAssembly Component repl. +## Building from Source + +You can build `wepl` from source by running `make build` + +## Installing `wepl` + +You can install `wepl` on your local system by running `make install` + ## Example ```bash From 695ba240d49c3edef177f60551edf1b78c19e86a Mon Sep 17 00:00:00 2001 From: Thorsten Hans Date: Tue, 5 Mar 2024 10:14:03 +0100 Subject: [PATCH 2/2] chore: Remove Makefile & document build and install in README Signed-off-by: Thorsten Hans --- Makefile | 7 ------- README.md | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index a9c310f..0000000 --- a/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -.PHONY: build -build: - cargo build --release - -.PHONY: install -install: - cargo install --path . --locked diff --git a/README.md b/README.md index f4e1f24..4fe8a64 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ The WebAssembly Component repl. ## Building from Source -You can build `wepl` from source by running `make build` +You can build `wepl` from source by running `cargo build --release` (or `cargo build` to build in debug mode). ## Installing `wepl` -You can install `wepl` on your local system by running `make install` +You can install `wepl` on your local system by running `cargo install --path . --locked` ## Example