Skip to content

Instantly share code, notes, and snippets.

@davemo
Last active April 12, 2017 21:04
Show Gist options
  • Select an option

  • Save davemo/c0462e8196289e0fb0210ee63ff02962 to your computer and use it in GitHub Desktop.

Select an option

Save davemo/c0462e8196289e0fb0210ee63ff02962 to your computer and use it in GitHub Desktop.

Revisions

  1. davemo revised this gist Apr 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    VERSION ?= $(shell cat VERSION)

    .PHONY: help build version clean bump release tag push container
    .PHONY: help version clean bump release

    .DEFAULT_GOAL := help

  2. davemo revised this gist Apr 12, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -11,13 +11,13 @@ clean: ## clean artifacts
    rm -rf build

    release: bump ## bump the VERSION file, git tags, and push github
    make push -e VERSION=$(shell cat VERSION)
    make push -e VERSION=$(shell cat VERSION)

    version:
    cat VERSION
    cat VERSION

    bump:
    script/bump --patch
    script/bump --patch

    help:
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
  3. davemo created this gist Apr 12, 2017.
    23 changes: 23 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    VERSION ?= $(shell cat VERSION)

    .PHONY: help build version clean bump release tag push container

    .DEFAULT_GOAL := help

    build: ## build the app
    do stuff

    clean: ## clean artifacts
    rm -rf build

    release: bump ## bump the VERSION file, git tags, and push github
    make push -e VERSION=$(shell cat VERSION)

    version:
    cat VERSION

    bump:
    script/bump --patch

    help:
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'