diff options
-rw-r--r-- | client-web/makefile | 1 | ||||
-rw-r--r-- | makefile | 12 | ||||
-rw-r--r-- | readme.md | 4 | ||||
-rw-r--r-- | server/makefile | 9 |
4 files changed, 22 insertions, 4 deletions
diff --git a/client-web/makefile b/client-web/makefile index 9760c39..c9a7db3 100644 --- a/client-web/makefile +++ b/client-web/makefile @@ -2,7 +2,6 @@ all: public/assets/bundle.js watch: deno bundle --no-check --watch source/index.ts public/assets/bundle.js - public/assets/bundle.js: source/* deno bundle --no-check --unstable source/index.ts > $@ diff --git a/makefile b/makefile new file mode 100644 index 0000000..bf365c8 --- /dev/null +++ b/makefile @@ -0,0 +1,12 @@ + +.PHONY: run client-build server-run server-build watch +run: client-build server-run +client-build: + make -C client-web all +server-run: + make -C server run +server-build: + make -C server release +watch: + make -C client-web watch & + make -C server watch @@ -37,9 +37,7 @@ For self-hosting, this script should do: ``` git clone https://codeberg.org/metamuffin/keks-meet.git cd keks-meet -make -C client-web -cd server -cargo run --release +make run ``` If you use this project or have any suggestions, please [contact me](https://metamuffin.org/contact) diff --git a/server/makefile b/server/makefile new file mode 100644 index 0000000..92df533 --- /dev/null +++ b/server/makefile @@ -0,0 +1,9 @@ +# makefile is stupid but helps with installation +.PHONY: release run watch +release: target/release/keks-meet +run: + cargo +stable run --release +watch: + systemfd --no-pid -s http::8080 -- cargo watch -x '+stable run' +target/release/keks-meet: $(shell find src) Cargo.toml + cargo +stable build --release |