Skip to content

Commit

Permalink
[Makefile] fix static-content recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Dec 14, 2023
1 parent 9901e0c commit 9045cfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get update -qq && \
COPY . .

RUN npm i -g webpack-cli
RUN make
RUN make static-content

# Final stage for app image
FROM base
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ node_modules = $(patsubst %,%/node_modules,$(demos)) demo-server/node_modules
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done

.PHONY: dist
dist: $(demos) # Build all distribution files

.PHONY: clean
clean : # remove all generated files
rm -rf */dist */node_modules node_modules

static-content : # Build the demos so that they can be served via a CDN
make -j all
make -j dist
rm -rf node_modules */node_modules

$(node_modules) : %/node_modules: %/package.json %/package-lock.json
Expand Down

0 comments on commit 9045cfe

Please sign in to comment.