Merge pull request #1172 from spameier/fix-Makefile

fix: put GOFLAGS in correct order
This commit is contained in:
Simone Margaritelli 2025-06-01 13:44:34 +02:00 committed by GitHub
commit 948756208a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)