mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Various changes and fixes
- Remove GOFLAGS variable; it's not needed - Make GOFLAGS variable first on all Go related functions Signed-off-by: TheRealKeto <therealketo@gmail.com>
This commit is contained in:
parent
754b6b3841
commit
d7f95dc97d
1 changed files with 6 additions and 7 deletions
13
Makefile
13
Makefile
|
@ -2,15 +2,14 @@ TARGET ?= bettercap
|
||||||
PACKAGES ?= core firewall log modules network packets session tls
|
PACKAGES ?= core firewall log modules network packets session tls
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
GO ?= go
|
GO ?= go
|
||||||
GOFLAGS ?=
|
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build: resources
|
build: resources
|
||||||
$(GO) $(GOFLAGS) build -o $(TARGET) .
|
$(GOFLAGS) $(GO) build -o $(TARGET) .
|
||||||
|
|
||||||
build_with_race_detector: resources
|
build_with_race_detector: resources
|
||||||
$(GO) $(GOFLAGS) build -race -o $(TARGET) .
|
$(GOFLAGS) $(GO) build -race -o $(TARGET) .
|
||||||
|
|
||||||
resources: network/manuf.go
|
resources: network/manuf.go
|
||||||
|
|
||||||
|
@ -25,13 +24,13 @@ docker:
|
||||||
@docker build -t bettercap:latest .
|
@docker build -t bettercap:latest .
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(GO) $(GOFLAGS) test -covermode=atomic -coverprofile=cover.out ./...
|
$(GOFLAGS) $(GO) test -covermode=atomic -coverprofile=cover.out ./...
|
||||||
|
|
||||||
html_coverage: test
|
html_coverage: test
|
||||||
$(GO) $(GOFLAGS) tool cover -html=cover.out -o cover.out.html
|
$(GOFLAGS) $(GO) tool cover -html=cover.out -o cover.out.html
|
||||||
|
|
||||||
benchmark: server_deps
|
benchmark: server_deps
|
||||||
$(GO) $(GOFLAGS) test -v -run=doNotRunTests -bench=. -benchmem ./...
|
$(GOFLAGS) $(GO) test -v -run=doNotRunTests -bench=. -benchmem ./...
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
$(GO) fmt -s -w $(PACKAGES)
|
$(GO) fmt -s -w $(PACKAGES)
|
||||||
|
@ -40,4 +39,4 @@ clean:
|
||||||
$(RM) $(TARGET)
|
$(RM) $(TARGET)
|
||||||
$(RM) -r build
|
$(RM) -r build
|
||||||
|
|
||||||
.PHONY: all build build_with_race_detector resources install docker test html_coverage benchmark fmt clean
|
.PHONY: all build build_with_race_detector resources install docker test html_coverage benchmark fmt clean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue