Created
November 15, 2022 00:48
-
-
Save brona90/4e481625d1453a1c9e235d40bcbe76d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DEFAULT_GOAL := help | |
build: ## Build the Dockerfile into a container | |
docker compose build | |
run: build ## Run the docker container made from the Dockerfile | |
docker compose run --rm golang | |
help: ## Show this help | |
#This is a mess of code that prints a pretty help via awk TODO make this simpler | |
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment