-
Notifications
You must be signed in to change notification settings - Fork 55
/
Makefile
47 lines (38 loc) · 1.4 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Command variables
JEKYLL=bundle exec jekyll
BUNDLE=bundle
GEM=gem
# default command/output
default: show-args
# default output in user just type "make"
show-args:
@echo Follow these instructions:
@echo make init: Install and update all dependencies., and run one time before using the tools each day
@echo make run: start the local web server. does not build the site first.
@echo make dev: build and test the local documentation site
@echo make build: build the local documentation site. typically done before "make run"}
@echo make test: test the local documentation site
# make init: install and update all dependencies. run once before using tools each day
init:
$(GEM) update --system
$(GEM) install bundler
$(BUNDLE) config unset deployment
$(BUNDLE) update --bundler
$(BUNDLE) install
$(BUNDLE) config set --local deployment 'true'
# make run: start the local web server. does not build the site first.
run:
$(JEKYLL) serve
# make dev: build and test the local documentation site
dev:
$(JEKYLL) build
$(JEKYLL) serve
$(JEKYLL) doctor
# make build: build the local documentation site. typically done before "make run"
build:
$(JEKYLL) build
# make test: test the local documentation site
test:
$(JEKYLL) doctor
# These special targets are referred to as PHONY, which explicitly tells the make file that they are not associated with files.
.PHONY : default show-args init run dev build test