Commit 4b17a790317449aac298eb8f1bc5acbea5cd7c76

Authored by Georg Hopp
1 parent 91749b0d

Useless but fancy visual build improvement

Showing 1 changed file with 10 additions and 3 deletions
@@ -11,19 +11,26 @@ WASM_PROFILE = --dev @@ -11,19 +11,26 @@ WASM_PROFILE = --dev
11 WASM_EXTRA = 11 WASM_EXTRA =
12 endif 12 endif
13 13
  14 +define msg
  15 + @printf "\033[38;5;197m%s\033[0m\n" "$(1)"
  16 +endef
  17 +
14 start: 18 start:
15 systemfd --no-pid -s 0.0.0.0:3000 -- \ 19 systemfd --no-pid -s 0.0.0.0:3000 -- \
16 cargo watch -i static/ -s "make run" 20 cargo watch -i static/ -s "make run"
17 21
18 wasm: 22 wasm:
19 - wasm-pack build $(WASM_PROFILE) -d ../static/ui -t web ./ui -- \ 23 + $(call msg,BUILD WASM UI)
  24 + @wasm-pack build $(WASM_PROFILE) -d ../static/ui -t web ./ui -- \
20 $(WASM_EXTRA) 25 $(WASM_EXTRA)
21 26
22 build: 27 build:
23 - cargo build $(CARGO_PROFILE) --bin artshop-server 28 + $(call msg,BUILD SERVER)
  29 + @cargo build $(CARGO_PROFILE) --bin artshop-server
24 30
25 run: build wasm 31 run: build wasm
26 - cargo run $(CARGO_PROFILE) --bin artshop-server 32 + $(call msg,RUN SERVER)
  33 + @cargo run $(CARGO_PROFILE) --bin artshop-server
27 34
28 release: 35 release:
29 docker build -t artshop -f build/Dockerfile . 36 docker build -t artshop -f build/Dockerfile .
Please register or login to post a comment