From cf493d9ef3f9de764919145aa35d7b055fc17206 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 11 Sep 2022 11:12:02 +0200 Subject: more makefile!!! --- client-web/makefile | 1 - makefile | 12 ++++++++++++ readme.md | 4 +--- server/makefile | 9 +++++++++ 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 makefile create mode 100644 server/makefile 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 diff --git a/readme.md b/readme.md index 735e5a6..d9af5f6 100644 --- a/readme.md +++ b/readme.md @@ -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 -- cgit v1.2.3-70-g09d2