mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-11-28 04:24:36 +03:00
20 lines
350 B
Makefile
20 lines
350 B
Makefile
# Go parameters
|
|
GOCMD=go
|
|
GOBUILD=$(GOCMD) build
|
|
GOMOD=$(GOCMD) mod
|
|
GOTEST=$(GOCMD) test
|
|
GOFLAGS := -v
|
|
LDFLAGS := -s -w
|
|
|
|
ifneq ($(shell go env GOOS),darwin)
|
|
LDFLAGS := -extldflags "-static"
|
|
endif
|
|
|
|
all: build
|
|
build:
|
|
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "httpx" cmd/httpx/httpx.go
|
|
test:
|
|
$(GOTEST) $(GOFLAGS) ./...
|
|
tidy:
|
|
$(GOMOD) tidy
|