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:
Ev Kontsevoy
2018-02-26 13:31:45 -08:00
parent ff6dee1e0b
commit cb25ea4be1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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