Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Clochard committed Mar 3, 2019
1 parent 7f01b9b commit 72efc75
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
##
## Config Variables
## Can be overridden by ENV variables
##
DEST?=_site
BASEURL?=''
CONFIG?=_config.yml

##
## Build Options
##
JEKYLL_BUILD_OPT=--destination $(DEST) --baseurl $(BASEURL)

##
## Targets
##

build: $(CONFIG)
jekyll build $(JEKYLL_BUILD_OPT)

dockerbuild: $(DEST) $(CONFIG)
docker run --rm -v $(PWD):/srv/jekyll jekyll/jekyll:builder jekyll build $(JEKYLL_BUILD_OPT)

serve: $(CONFIG)
jekyll serve --watch --destination $(DEST)

$(DEST):
mkdir -p $(DEST)
chmod a+rwx $(DEST)

test:
rake test

clean:
rm -fr $(DEST)

0 comments on commit 72efc75

Please sign in to comment.