build(Makefile): add dependencies targets as explicit prerequisite for compiles and starts
This commit is contained in:
parent
8104ce96cc
commit
20faec8973
10
Makefile
10
Makefile
@ -262,7 +262,7 @@ endif
|
|||||||
|
|
||||||
# For Reverse Proxy Problem see: https://groups.google.com/g/yesodweb/c/2EO53kSOuy0/m/Lw6tq2VYat4J
|
# For Reverse Proxy Problem see: https://groups.google.com/g/yesodweb/c/2EO53kSOuy0/m/Lw6tq2VYat4J
|
||||||
# HELP(start-backend): start development instance
|
# HELP(start-backend): start development instance
|
||||||
--start-backend:
|
--start-backend: --dependencies-backend
|
||||||
export YESOD_IP_FROM_HEADER=true; \
|
export YESOD_IP_FROM_HEADER=true; \
|
||||||
export DEV_PORT_HTTP=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTP=' | sed 's/DEV_PORT_HTTP=//'`; \
|
export DEV_PORT_HTTP=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTP=' | sed 's/DEV_PORT_HTTP=//'`; \
|
||||||
export DEV_PORT_HTTPS=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTPS=' | sed 's/DEV_PORT_HTTPS=//'`; \
|
export DEV_PORT_HTTPS=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTPS=' | sed 's/DEV_PORT_HTTPS=//'`; \
|
||||||
@ -282,7 +282,7 @@ endif
|
|||||||
export AVSPASS=$${AVSPASS:-nopasswordset} ; \
|
export AVSPASS=$${AVSPASS:-nopasswordset} ; \
|
||||||
stack $(STACK_CORES) exec --local-bin-path $$(pwd)/bin --copy-bins -- yesod devel -p "$${DEV_PORT_HTTP}" -q "$${DEV_PORT_HTTPS}"
|
stack $(STACK_CORES) exec --local-bin-path $$(pwd)/bin --copy-bins -- yesod devel -p "$${DEV_PORT_HTTP}" -q "$${DEV_PORT_HTTPS}"
|
||||||
# HELP(compile-backend): compile backend binaries
|
# HELP(compile-backend): compile backend binaries
|
||||||
--compile-backend:
|
--compile-backend: --dependencies-backend
|
||||||
stack build $(STACK_CORES) --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only $(--DEVELOPMENT) --local-bin-path $$(pwd)/bin --copy-bins
|
stack build $(STACK_CORES) --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only $(--DEVELOPMENT) --local-bin-path $$(pwd)/bin --copy-bins
|
||||||
# HELP(dependencies-backend): (re-)build backend dependencies
|
# HELP(dependencies-backend): (re-)build backend dependencies
|
||||||
--dependencies-backend: #uniworx.cabal
|
--dependencies-backend: #uniworx.cabal
|
||||||
@ -299,10 +299,10 @@ endif
|
|||||||
# stack exec -- hpack --force
|
# stack exec -- hpack --force
|
||||||
|
|
||||||
# HELP(compile-frontend): compile frontend assets
|
# HELP(compile-frontend): compile frontend assets
|
||||||
--compile-frontend: node_modules assets esbuild.config.mjs frontend/src/env.sass
|
--compile-frontend: --dependencies-frontend
|
||||||
npm run build
|
npm run build
|
||||||
--start-frontend: --compile-frontend;
|
--start-frontend: --compile-frontend;
|
||||||
--dependencies-frontend: node_modules assets;
|
--dependencies-frontend: node_modules assets esbuild.config.mjs frontend/src/env.sass;
|
||||||
node_modules: package.json package-lock.json
|
node_modules: package.json package-lock.json
|
||||||
npm install --cache .npm --prefer-offline
|
npm install --cache .npm --prefer-offline
|
||||||
package-lock.json: package.json
|
package-lock.json: package.json
|
||||||
@ -316,7 +316,7 @@ assets/icons: node_modules assets/icons-src/fontawesome.json
|
|||||||
-cp assets/icons-src/*.svg assets/icons/fradrive
|
-cp assets/icons-src/*.svg assets/icons/fradrive
|
||||||
frontend/src/env.sass:
|
frontend/src/env.sass:
|
||||||
echo "\$$path: '$${PROJECT_DIR}'" > frontend/src/env.sass
|
echo "\$$path: '$${PROJECT_DIR}'" > frontend/src/env.sass
|
||||||
static: node_modules assets esbuild.config.mjs frontend/src/env.sass
|
static: --dependencies-frontend
|
||||||
npm run build
|
npm run build
|
||||||
well-known: static;
|
well-known: static;
|
||||||
--lint-frontend: --compile-frontend
|
--lint-frontend: --compile-frontend
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user