Commit 16ecf0da authored by David Vorick's avatar David Vorick

makefile improvements

'make dependencies' would fail after upgrading go if you did not
reinstall the standard library. This hsa been fixed by adding
'go install ./...' to the head of the 'make dependencies' command, which
slows things down by a tiny fraction but prevents a class of errors
which may frustrate users.

The '-a' flag has been removed from the makefile, because as of a recent
version of go it is no longer necessary to have that flag in order to
have up-to-date standard library packages. Further, having the '-a' flag
would cause permission issues on systems where $GOROOT or $GOPATH was
owned by root. Removing the flag removes the problem.
parent 719267f1
......@@ -5,6 +5,7 @@ all: install
# dependencies installs all of the dependencies that are required for building
# Sia.
dependencies:
go install ./...
# Consensus Dependencies
go get -u github.com/NebulousLabs/demotemutex
go get -u github.com/NebulousLabs/ed25519
......@@ -64,9 +65,9 @@ install: REBUILD
# release builds and installs release binaries.
release: REBUILD
go install -a -race -tags='debug profile' $(pkgs)
go install -race -tags='debug profile' $(pkgs)
release-std: REBUILD
go install -a $(pkgs)
go install $(pkgs)
# xc builds and packages release binaries for all systems by using goxc.
# Cross Compile - makes binaries for windows, linux, and mac, 32 and 64 bit.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment