Makefile: fix frontend build
Its make was moved to `serve` target in ccec612687
, but we can't use `serve` target in the nix build
It's also run after `frontend` target is already built which probably causes the `frontend` target to build.
This commit is contained in:
parent
2b49ed618d
commit
9ebdbdb36a
2
Makefile
2
Makefile
|
@ -29,6 +29,7 @@ $(PUBLIC_DIR)/index.html: $(FRONTEND_DIR)/index.html $(PUBLIC_DIR)
|
|||
.PHONY: frontend backend
|
||||
|
||||
frontend: $(PUBLIC_DIR)/index.html $(PUBLIC_DIR)
|
||||
make -C $(FRONTEND_DIR)
|
||||
cp $(FRONTEND_DIR)/elm.min.js $(PUBLIC_DIR)/
|
||||
cp $(FRONTEND_DIR)/src/ports.websocket.js $(PUBLIC_DIR)/
|
||||
mkdir -p $(PUBLIC_DIR)/assets
|
||||
|
@ -37,7 +38,6 @@ backend:
|
|||
$(CARGO_BUILD) --manifest-path=$(BACKEND_DIR)/Cargo.toml
|
||||
|
||||
serve: frontend backend
|
||||
make -C $(FRONTEND_DIR)
|
||||
ifeq ($(DEBUG),1)
|
||||
RUST_LOG=info,actix_web=debug $(CARGO_RUN) --manifest-path=$(BACKEND_DIR)/Cargo.toml
|
||||
else ifeq ($(RELEASE),1)
|
||||
|
|
Loading…
Reference in a new issue