mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-24 02:25:42 +08:00
Minor Makefile changes to make it friendly to Go 1.10
make -j (parallel builds) which we use to speed up building multiple binaries on multi-core systems caused Go 1.10 compiler fail when writing to a .so file at the same time. Adding 'tool/...' as a dependency solves this.
This commit is contained in:
@@ -43,8 +43,8 @@ TELEPORTVENDOR = $(shell find vendor -type f -name '*.go')
|
||||
# a web UI.
|
||||
.PHONY: all
|
||||
all: $(VERSRC)
|
||||
go install $(BUILDFLAGS) ./lib/...
|
||||
$(MAKE) -s -j 4 $(BINARIES)
|
||||
go install $(BUILDFLAGS) ./lib/... ./tool/...
|
||||
$(MAKE) -s -j 3 $(BINARIES)
|
||||
|
||||
$(BUILDDIR)/tctl: $(LIBS) $(TELEPORTSRC) $(TELEPORTVENDOR)
|
||||
go build -o $(BUILDDIR)/tctl -i $(BUILDFLAGS) ./tool/tctl
|
||||
|
||||
+1
-1
Submodule e updated: 8107d6ad67...17e0ce9b97
Reference in New Issue
Block a user