fix Makefile indentation for commands to work

This commit is contained in:
Sajad Parra 2021-09-15 17:48:33 +05:30
parent 744c739aa1
commit 14ecfedf24

View File

@ -7,16 +7,16 @@ GOGET=$(GOCMD) get
all: build all: build
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: docs:
if ! which dstdocgen > /dev/null; then if ! which dstdocgen > /dev/null; then
echo -e "Command not found! Install? (y/n) \c" echo -e "Command not found! Install? (y/n) \c"
go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen go get -v github.com/projectdiscovery/yamldoc-go/cmd/docgen/dstdocgen
fi fi
$(GOCMD) generate pkg/templates/templates.go $(GOCMD) generate pkg/templates/templates.go
$(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go $(GOBUILD) -o "cmd/docgen/docgen" cmd/docgen/docgen.go
./cmd/docgen/docgen docs.md nuclei-jsonschema.json ./cmd/docgen/docgen docs.md nuclei-jsonschema.json
test: test:
$(GOTEST) -v ./... $(GOTEST) -v ./...
tidy: tidy:
$(GOMOD) tidy $(GOMOD) tidy