Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ MAKEFILES=Makefile $(wildcard *.mk)
JEKYLL=jekyll
PARSER=bin/markdown_ast.rb
DST=_site
JEKYLL_CONTAINER=jekyll/jekyll
DOCKER=docker

# Controls
.PHONY : commands clean files
.PHONY : commands clean files serve pull-container
all : commands

## commands : show all commands.
Expand All @@ -17,7 +19,15 @@ commands :

## serve : run a local server.
serve : lesson-rmd
${JEKYLL} serve
$(JEKYLL) serve --config _config.yml,_config-dev.yml

## serve-docker : run a local server within a Docker container
serve-docker : override JEKYLL=$(DOCKER) run --volume=${PWD}:/srv/jekyll -it -p 127.0.0.1:4000:4000 $(JEKYLL_CONTAINER) jekyll
serve-docker : pull-container serve

## pull-container : update the Jekyll Docker container
pull-container :
$(DOCKER) pull $(JEKYLL_CONTAINER)

## site : build files but do not run a server.
site : lesson-rmd
Expand Down