chore(Makefile): copy bins and set local bin path

This commit is contained in:
Sarah Vaupel 2024-06-20 16:24:42 +02:00
parent f90a244cd4
commit 66026fb877

View File

@ -27,18 +27,18 @@ backend-%-prod: # .stack-work.lock # --stack-work-$*
.PHONY: --backend-%-dev
--backend-%-dev: .develop.env
$(MAKE) -- --backend-$* dev=--flag\ uniworx:dev
$(MAKE) -- --backend-$* stackopts=--flag\ uniworx:dev
.PHONY: --backend-%-prod
--backend-%-prod:
$(MAKE) -- --backend-$*
$(MAKE) -- --backend-$* stackopts=--copy-bins\ --local-bin-path\ $$(pwd)/bin\ --flag\ uniworx:-dev
.PHONY: --backend-build
--backend-build:
stack build --fast --profile --library-profiling --executable-profiling $(dev) --flag uniworx:-library-only
stack build --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only $(stackopts)
.PHONY: --backend-lint
--backend-lint:
stack build --test --fast $(dev) --flag uniworx:library-only uniworx:test:hlint
stack build --test --fast --flag uniworx:library-only uniworx:test:hlint $(stackopts)
.PHONY: backend-dependencies
backend-dependencies:
@ -46,7 +46,7 @@ backend-dependencies:
.PHONY: --backend-test
--backend-test:
stack build --test --coverage --fast $(dev) --flag uniworx:library-only
stack build --test --coverage --fast --flag uniworx:library-only $(stackopts)
.PHONY: i18n-check
i18n-check:
@ -60,7 +60,7 @@ database: .stack-work.lock # --stack-work-build
.PHONY: --database
--database: .stack-work.lock
stack build --fast --flag uniworx:-library-only $(dev)
stack build --fast --flag uniworx:-library-only $(stackopts)
export SERVER_SESSION_ACID_FALLBACK=$${SERVER_SESSION_ACID_FALLBACK:-true}
export AVSPASS=$${AVSPASS:-nopasswordset}
stack exec uniworxdb -- $(db)