aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 654f19fe626fa3ae80105848e40ac03cc43f156e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

build: ## Build the image
	clear
	make build-shellcheck
	docker build -t thornycrackers/alpine .

build-shellcheck: ## build the shellcheck binaries
	clear
	docker build -t thornycrackers/shellcheck shellcheck-builder
	docker run --rm -it -v $(CURDIR):/mnt thornycrackers/shellcheck

enter: ## Enter the image
	docker run -i -t thornycrackers/alpine

clearn: ## Remove the shellcheck binaries
	rm -rf package