chore(Makefile): cleanup and document
This commit is contained in:
parent
5de66f5be6
commit
140c875668
6
Makefile
6
Makefile
@ -26,6 +26,7 @@ backend-%: # .stack-work.lock # --stack-work-$*
|
||||
backend-%-prod: # .stack-work.lock # --stack-work-$*
|
||||
$(MAKE) -- --backend-$*
|
||||
|
||||
# TODO: this creates more binaries than just bin/uniworx as side effect! Document or change behaviour?
|
||||
bin/uniworx:
|
||||
$(MAKE) -- --backend-build-prod
|
||||
|
||||
@ -37,7 +38,7 @@ bin/uniworx:
|
||||
# TODO deprecated in favor of binary targets
|
||||
.PHONY: --backend-%-prod
|
||||
--backend-%-prod:
|
||||
$(MAKE) -- --backend-$* stackopts=--copy-bins\ --local-bin-path\ $$(pwd)/bin\ --flag\ uniworx:-dev # --allow-different-user
|
||||
$(MAKE) -- --backend-$* stackopts=--copy-bins\ --local-bin-path\ $$(pwd)/bin\ --flag\ uniworx:-dev
|
||||
|
||||
.PHONY: --backend-build
|
||||
--backend-build:
|
||||
@ -53,7 +54,7 @@ backend-dependencies:
|
||||
|
||||
.PHONY: backend-dependencies-prod
|
||||
backend-dependencies-prod:
|
||||
$(MAKE) -- --backend-dependencies # stackopts=--allow-different-user
|
||||
$(MAKE) -- --backend-dependencies
|
||||
|
||||
.PHONY: --backend-dependencies
|
||||
--backend-dependencies:
|
||||
@ -80,6 +81,7 @@ database: .stack-work.lock # --stack-work-build
|
||||
export AVSPASS=$${AVSPASS:-nopasswordset}
|
||||
stack exec uniworxdb -- $(db)
|
||||
|
||||
# TODO: same behaviour as b9in/uniworx! Merge or tweak targets!
|
||||
bin/uniworxdb: .stack-work.lock
|
||||
stack build --fast --flag uniworx:-library-only --copy-bins\ --local-bin-path\ $$(pwd)/bin\ --flag\ uniworx:-dev
|
||||
|
||||
|
||||
Reference in New Issue
Block a user