From 63ff51efdf0889f0a9fcc6d1bc47d07f19f63b4c Mon Sep 17 00:00:00 2001 From: spameier Date: Sat, 8 Feb 2025 10:39:23 +0100 Subject: [PATCH] fix: put GOFLAGS in correct order --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 65a2e917..3ec8e6cc 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,10 @@ GO ?= go all: build build: resources - $(GOFLAGS) $(GO) build -o $(TARGET) . + $(GO) build $(GOFLAGS) -o $(TARGET) . build_with_race_detector: resources - $(GOFLAGS) $(GO) build -race -o $(TARGET) . + $(GO) build $(GOFLAGS) -race -o $(TARGET) . resources: network/manuf.go @@ -24,13 +24,13 @@ docker: @docker build -t bettercap:latest . test: - $(GOFLAGS) $(GO) test -covermode=atomic -coverprofile=cover.out ./... + $(GO) test -covermode=atomic -coverprofile=cover.out ./... html_coverage: test - $(GOFLAGS) $(GO) tool cover -html=cover.out -o cover.out.html + $(GO) tool cover -html=cover.out -o cover.out.html benchmark: server_deps - $(GOFLAGS) $(GO) test -v -run=doNotRunTests -bench=. -benchmem ./... + $(GO) test -v -run=doNotRunTests -bench=. -benchmem ./... fmt: $(GO) fmt -s -w $(PACKAGES)