20 lines
603 B
Makefile
20 lines
603 B
Makefile
## This Makefile uses the help target explained in the following blogpost:
|
|
##
|
|
## https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help
|
|
help: ## Show this help
|
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | \
|
|
sort | \
|
|
awk \
|
|
'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
|
|
|
.PHONY: install
|
|
install: ## Use `go install` to build and link the executable
|
|
go install -a ./cmd/babillard/
|
|
|
|
.PHONY: build
|
|
build: ## Use `docker build` to build the container image
|
|
docker build . -f Dockerfile -t git.agecem.com/agecem/babillard:latest
|