aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 46f6162aa9eb6004f61fc9adf535540d10feaa4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
JEKYLL_ENV ?= development
# JEKYLL_ENV ?= production

WEBROOT ?= _site

JEKYLL_BUILD_ARGS += --quiet
JEKYLL_BUILD_ARGS += --destination $(WEBROOT)

# Gemfile.lock is used as a proxy for checking if the required gems are
# installed
GEMS = Gemfile.lock

build: $(GEMS)
	bundle exec jekyll build $(JEKYLL_BUILD_ARGS)

$(GEMS): Gemfile
	bundle install --quiet

clean:
	$(RM) -r $(WEBROOT)