mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
Simplify build targets
This commit is contained in:
parent
70e7bf6b5b
commit
b180386d23
13
Makefile
13
Makefile
@ -4,9 +4,8 @@ NODE_VERSION=$(shell cat .nvmrc)
|
|||||||
GIT_SHA=$(shell git rev-parse --short HEAD)
|
GIT_SHA=$(shell git rev-parse --short HEAD)
|
||||||
GIT_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`)
|
GIT_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
|
|
||||||
## Default target just build the Go project.
|
## Default target just build the project.
|
||||||
default:
|
default: buildall
|
||||||
go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=master"
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
|
|
||||||
dev: check_env
|
dev: check_env
|
||||||
@ -94,12 +93,14 @@ check_node_env:
|
|||||||
.PHONY: check_node_env
|
.PHONY: check_node_env
|
||||||
|
|
||||||
build: check_go_env
|
build: check_go_env
|
||||||
go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT"
|
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
|
.PHONY: build
|
||||||
|
|
||||||
buildall: check_go_env
|
buildjs: check_node_env
|
||||||
@(cd ./ui && npm run build)
|
@(cd ./ui && npm run build)
|
||||||
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: buildjs
|
||||||
|
|
||||||
|
buildall: buildjs build
|
||||||
.PHONY: buildall
|
.PHONY: buildall
|
||||||
|
|
||||||
pre-push: lintall testall
|
pre-push: lintall testall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user