Commit c7d942cd965a047c6279db5dc301c2d4d7f4c0cf Parent: 6aab808c286bf022b308d712eea740f2f7c34445 Author: mcol <mcol@posteo.net> Date: 2021-11-22 20:22:55 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-11-22 20:22:55 +0000 Add makefile for convenience
Makefile Added
@@ -0,0 +1,25 @@ +.DEFAULT_GOAL := build + +.PHONY: build +build: ## Compile the binary (Default) + @stack build + +.PHONY: help +help: ## Show this help + @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[1m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) + +.PHONY: lint +lint: ## Check the source code + @hlint src + +.PHONY: format +format: ## Check the source code + @fourmolu -m inplace src/* + +.PHONY: install +install: ## Clean generated files + @stack install + +.PHONY: clean +clean: ## Clean generated files + @stack clean