kopia lustrzana https://github.com/cyoung/stratux
Revert Makefile back to non-static fancontrol.
rodzic
ea657208c0
commit
cab2a81c26
6
Makefile
6
Makefile
|
@ -3,9 +3,7 @@ ifeq "$(CIRCLECI)" "true"
|
||||||
BUILDINFO=
|
BUILDINFO=
|
||||||
PLATFORMDEPENDENT=
|
PLATFORMDEPENDENT=
|
||||||
else
|
else
|
||||||
LDFLAGS_VERSION=-X main.stratuxVersion=`git describe --tags --abbrev=0` -X main.stratuxBuild=`git log -n 1 --pretty=%H`
|
BUILDINFO=-ldflags "-X main.stratuxVersion=`git describe --tags --abbrev=0` -X main.stratuxBuild=`git log -n 1 --pretty=%H`"
|
||||||
BUILDINFO=-ldflags "$(LDFLAGS_VERSION)"
|
|
||||||
BUILDINFO_STATIC=-ldflags "-extldflags -static $(LDFLAGS_VERSION)"
|
|
||||||
$(if $(GOROOT),,$(error GOROOT is not set!))
|
$(if $(GOROOT),,$(error GOROOT is not set!))
|
||||||
PLATFORMDEPENDENT=fancontrol
|
PLATFORMDEPENDENT=fancontrol
|
||||||
endif
|
endif
|
||||||
|
@ -21,7 +19,7 @@ xgen_gdl90:
|
||||||
|
|
||||||
fancontrol:
|
fancontrol:
|
||||||
go get -t -d -v ./main
|
go get -t -d -v ./main
|
||||||
go build $(BUILDINFO_STATIC) -p 4 main/fancontrol.go main/equations.go main/cputemp.go
|
go build $(BUILDINFO) -p 4 main/fancontrol.go main/equations.go main/cputemp.go
|
||||||
|
|
||||||
xdump1090:
|
xdump1090:
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
Ładowanie…
Reference in New Issue