Skip to content

Commit

Permalink
Add Makefile for convenience of running some tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed Aug 3, 2018
1 parent 42e9371 commit e767d7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.RECIPEPREFIX +=
.DEFAULT_GOAL := help
.PHONY: *

help:
@echo "\033[33mUsage:\033[0m\n make [target] [arg=\"val\"...]\n\n\033[33mTargets:\033[0m"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[32m%-15s\033[0m %s\n", $$1, $$2}'

up: ## Get up and running with Jekyll and Docker on localhost
docker run -it --rm --label=jekyll -v=`pwd`:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:pages jekyll s

0 comments on commit e767d7a

Please sign in to comment.