diff --git a/v2/Makefile b/v2/Makefile index 396bd0d04d..a24c1194fa 100644 --- a/v2/Makefile +++ b/v2/Makefile @@ -7,16 +7,16 @@ GOGET=$(GOCMD) get all: build build: - $(GOBUILD) -v -ldflags="-extldflags=-static" -o "nuclei" cmd/nuclei/main.go + $(GOBUILD) -v -ldflags="-extldflags=-static" -o "nuclei" cmd/nuclei/main.go docs: - if ! which dstdocgen > /dev/null; then - echo -e "Command not found! Install? (y/n) \c" - go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen - fi - $(GOCMD) generate pkg/templates/templates.go - $(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go - ./cmd/docgen/docgen docs.md nuclei-jsonschema.json -test: - $(GOTEST) -v ./... + if ! which dstdocgen > /dev/null; then + echo -e "Command not found! Install? (y/n) \c" + go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen + fi + $(GOCMD) generate pkg/templates/templates.go + $(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go + ./cmd/docgen/docgen docs.md nuclei-jsonschema.json +test: + $(GOTEST) -v ./... tidy: - $(GOMOD) tidy \ No newline at end of file + $(GOMOD) tidy \ No newline at end of file