Blame view

Makefile 470 Bytes
Georg Hopp authored
1 2 3 4 5 6 7 8 9 10
.PHONY: start wasm build run clean

PROFILE ?= dev
ifeq "$(PROFILE)" "release"
PROFILE = --release
else
PROFILE =
endif

start:
11
	systemfd --no-pid -s 0.0.0.0:3000 -- \
Georg Hopp authored
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
		cargo watch -i static/ -s "make run"

wasm:
	wasm-pack build $(PROFILE) -d ../static/ui -t web ./ui

build:
	cargo build $(PROFILE) --bin artshop-server

run: build wasm
	cargo run --bin artshop-server

release:
	docker build -t artshop -f build/Dockerfile .

clean:
	cargo clean
	rm -Rf ./static/ui