Skip to content

Instantly share code, notes, and snippets.

@noinarisak
Last active February 5, 2020 21:55
Show Gist options
  • Save noinarisak/e986ac0a6ade2b2a1b0c1aa975aa2c70 to your computer and use it in GitHub Desktop.
Save noinarisak/e986ac0a6ade2b2a1b0c1aa975aa2c70 to your computer and use it in GitHub Desktop.

Makefile Base Boilerplate

Contains boilerplate Makefile for development work.

# 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