mirror of
https://github.com/projectdiscovery/subfinder
synced 2026-06-21 14:05:24 +00:00
6867e076f1
Keeps module path as github.com/projectdiscovery/subfinder/v2 to preserve import compatibility. Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
20 lines
357 B
Makefile
20 lines
357 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 "subfinder" cmd/subfinder/main.go
|
|
test:
|
|
$(GOTEST) $(GOFLAGS) ./...
|
|
tidy:
|
|
$(GOMOD) tidy
|