From af7c87dd7b39a44a554fad1d1c301c7f1dcbffe1 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 5 Sep 2021 21:38:03 -0400 Subject: [PATCH] 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 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 25dfdbfb..7965bb0d 100644 --- a/Makefile +++ b/Makefile @@ -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= GOARCH= make single"; \ echo "Options:"; \