Skip to content

Agent Mesh

Makefile: default 'make' to building all Go binaries

Antonio Ojeaa32607c81039
diff --git a/Makefile b/Makefile
index c6afecfd..82dfce66 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
REPO_ROOT:=${CURDIR}
OUT_DIR=$(REPO_ROOT)/bin
+# libinterceptor.so is declared before "build" for its file-based prerequisite
+# rule; without this, plain "make" would default to that first rule instead.
+.DEFAULT_GOAL := build
+
# disable CGO by default for static binaries
CGO_ENABLED=0
export GOROOT GO111MODULE CGO_ENABLED