Skip to content

Commit

Permalink
simplify serve
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Dec 13, 2023
1 parent 16993f0 commit c529192
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ node_modules : package.json package-lock.json

.SECONDEXPANSION:

ifeq ($(MAKECMDGOALS),serve)
ifeq ($(MAKECMDGOALS),_serve)
$(dists) : %/dist : %/node_modules node_modules
cd $* && npm run watch
.PHONY: $(dists)
Expand All @@ -41,11 +41,11 @@ demo-server : $(node_modules) node_modules
cd demo-server && npm start
.PHONY : demo-server

# Build & watch all scripts. Also start the demo-server
# Requires parallel execution of make targets
ifneq (,$(findstring -j,-$(MAKEFLAGS)))
serve: demo-server $(demos)
else
_serve: demo-server $(demos)

# Start demo server and build & watch all demos in parallel
serve:
@$(MAKE) -j serve
endif
@$(MAKE) -j _serve


0 comments on commit c529192

Please sign in to comment.