forked from snowplow-archive/snowplowanalytics.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 1.13 KB
/
Makefile
File metadata and controls
44 lines (33 loc) · 1.13 KB
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
.PHONY: serve install clean
# -----------------------------------------------------------------------------
# CONSTANTS
# -----------------------------------------------------------------------------
ruby_v = 2.6.3
bundler_v = 1.17.2
ruby_v_file = .ruby-version
gemfile = Gemfile
gemfile_lock = Gemfile.lock
# -----------------------------------------------------------------------------
# DEPENDENCIES
# -----------------------------------------------------------------------------
install: $(ruby_v_file)
gem install bundler --version $(bundler_v)
bundle install
npm install
$(ruby_v_file):
rbenv install $(ruby_v) -s
rbenv local $(ruby_v)
# -----------------------------------------------------------------------------
# SERVE
# -----------------------------------------------------------------------------
serve:
npm run watch
bundle exec jekyll serve
serve-incremental:
npm run watch
bundle exec jekyll serve --incremental
# -----------------------------------------------------------------------------
# CLEANUP
# -----------------------------------------------------------------------------
clean:
rm -rf $(ruby_v_file)