Commit 4b17a790317449aac298eb8f1bc5acbea5cd7c76
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 | 11 | WASM_EXTRA = |
| 12 | 12 | endif |
| 13 | 13 | |
| 14 | +define msg | |
| 15 | + @printf "\033[38;5;197m%s\033[0m\n" "$(1)" | |
| 16 | +endef | |
| 17 | + | |
| 14 | 18 | start: |
| 15 | 19 | systemfd --no-pid -s 0.0.0.0:3000 -- \ |
| 16 | 20 | cargo watch -i static/ -s "make run" |
| 17 | 21 | |
| 18 | 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 | 25 | $(WASM_EXTRA) |
| 21 | 26 | |
| 22 | 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 | 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 | 35 | release: |
| 29 | 36 | docker build -t artshop -f build/Dockerfile . | ... | ... |
Please
register
or
login
to post a comment