nuclei/v2/Makefile

18 lines
398 B
Makefile
Raw Normal View History

2021-03-28 17:13:46 +00:00
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOMOD=$(GOCMD) mod
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
all: build
build:
$(GOBUILD) -v -ldflags="-extldflags=-static" -o "nuclei" cmd/nuclei/main.go
docs:
$(GOCMD) generate pkg/templates/templates.go
$(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go
./cmd/docgen/docgen docs.md
2021-03-28 17:13:46 +00:00
test:
$(GOTEST) -v ./...
tidy:
$(GOMOD) tidy