yellow~ opinionated web scanning pipeline for pentesters in a hurry |
| git clone https://github.com/djnnvx/yellow.git |
| log | files | refs | archive | README | LICENSE |
Makefile (846B)
1 TARGET = yellow 2 SRC = main.go 3 4 GROUP_ID = $$(id -g) 5 USER_ID = $$(id -u) 6 7 .PHONY: all 8 all: compile 9 10 .PHONY: help 11 help: 12 @echo "\033[34myellow targets:\033[0m" 13 @perl -nle'print $& if m{^[a-zA-Z_-\d]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}' 14 15 .PHONY: compile 16 compile: ## compile the project 17 @go build -o $(TARGET) $(SRC) 18 19 .PHONY: docker 20 docker: ## builds a docker image from source 21 @docker build -t yellow \ 22 --build-arg USER_ID=$(USER_ID) \ 23 --build-arg GROUP_ID=$(GROUP_ID) \ 24 . 25 .PHONY: clean 26 clean: ## cleans up the project 27 rm -f $(TARGET) 28 29 .PHONY: tidy 30 tidy: ## runs tidy and formatting 31 @go mod tidy 32 @gofmt -s -w . 33 34 .PHONY: release-build 35 release-build: ## makes a release build locally on the current commit 36 @goreleaser release --skip=publish --snapshot