Give a warning on commands that do not build the frontend.

This is to avoid confusions like this:
https://github.com/navidrome/navidrome/issues/1297#issuecomment-913007331
This commit is contained in:
Deluan 2021-09-05 21:38:03 -04:00
parent 8df056b797
commit af7c87dd7b
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,7 @@ buildall: buildjs build ##@Build Build the project, both frontend and backend
.PHONY: buildall
build: check_go_env ##@Build Build only backend
@echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'"
go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=netgo
.PHONY: build
@ -77,11 +78,13 @@ buildjs: check_node_env ##@Build Build only frontend
.PHONY: buildjs
all: ##@Cross_Compilation Build binaries for all supported platforms. It does not build the frontend
@echo "WARNING: This command does not builds the frontend, it uses the latest one built by 'make buildjs'"
docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
goreleaser release --rm-dist --skip-publish --snapshot
.PHONY: all
single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend
@echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'"
@if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \
echo "Usage: GOOS=<os> GOARCH=<arch> make single"; \
echo "Options:"; \