-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (20 loc) · 696 Bytes
/
makefile
File metadata and controls
28 lines (20 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CONFIG = --config _config.yml,_config_dev.yml
HOST = --host localhost --port 4000
.PHONY: check clean build serve
build: clean check
bundle exec jekyll build $(CONFIG) --incremental --verbose
serve: build
bundle exec jekyll serve $(CONFIG) --incremental $(HOST)
check: clean
@echo "======== JEKYLL CHECK ========"
bundle exec jekyll doctor $(CONFIG)
@echo "=============================="
clean: Gemfile
bundle exec jekyll clean
-rm -rf .jekyll-cache
-rm -f Gemfile.lock
Gemfile:
-rm -f $@
@echo 'source "https://rubygems.org"' >> $@
@echo 'git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }' >> $@
@echo 'gem "github-pages", group: :jekyll_plugins' >> $@