Contains boilerplate Makefile for development work.
Last active
February 5, 2020 21:55
-
-
Save noinarisak/e986ac0a6ade2b2a1b0c1aa975aa2c70 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Author: [email protected] | |
# Date: | |
# Desc: | |
.ONESHELL: | |
.SHELL := /usr/bin/bash | |
.DEFAULT_GOAL := help | |
ROOT_PATH := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/../..) | |
.PHONY: help | |
help: | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}' | |
.PHONY: clean | |
clean: ## Clean up | |
@echo "+ $@" | |
.PHONY: build | |
build: clean ## Build | |
@echo "+ $@" | |
.PHONY: run | |
run: ## Run | |
@echo "+ $@" | |
.PHONY: test | |
test: ## Run test | |
@echo "+ $@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment