Skip to content

Commit

Permalink
build: Add -e flag before sed scripts
Browse files Browse the repository at this point in the history
This is required by some versions of sed, like the one used by default
on MacOS.

Fixes #68
  • Loading branch information
Wuestengecko committed Jan 20, 2025
1 parent d6fe87e commit ba64ffb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ help:

.PHONY: run
run: frontend/dist/static/env.js
sed -i "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
sed -i -e "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
MODE=production python frontend/fetch-version.py
python -c "from capellambse_context_diagrams import install_elk; install_elk()"
MODEL="$$MODEL" TEMPLATES_DIR="$$TEMPLATES_DIR" uvicorn \
Expand All @@ -38,7 +38,7 @@ build-frontend: frontend/node_modules

.PHONY: dev-backend
dev-backend:
sed -i "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
sed -i -e "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
MODE=production python frontend/fetch-version.py
python -c "from capellambse_context_diagrams import install_elk; install_elk()"
MODEL="$$MODEL" TEMPLATES_DIR="$$TEMPLATES_DIR" uvicorn \
Expand All @@ -49,7 +49,7 @@ dev-backend:

.PHONY: dev-frontend
dev-frontend: frontend/node_modules
sed -i "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
sed -i -e "s|__ROUTE_PREFIX__||g" frontend/dist/static/env.js
python frontend/fetch-version.py
cd frontend && npm run dev

Expand Down

0 comments on commit ba64ffb

Please sign in to comment.