diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..309c580e --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +SHELL := /bin/bash +IMAGE_NAME = package-analysis +.PHONY: help +help: ## Display this help + @awk \ + -v "col=${COLOR}" -v "nocol=${NOCOLOR}" \ + ' \ + BEGIN { \ + FS = ":.*##" ; \ + printf "Available targets:\n"; \ + } \ + /^[a-zA-Z0-9_-]+:.*?##/ { \ + printf " %s%-25s%s %s\n", col, $$1, nocol, $$2 \ + } \ + /^##@/ { \ + printf "\n%s%s%s\n", col, substr($$0, 5), nocol \ + } \ + ' $(MAKEFILE_LIST) + +.PHONY: dockerbuild +dockerbuild: ## Runs docker build + docker build . --file Dockerfile --tag $(IMAGE_NAME) +