forked from CloudNativeLinz/cloudnativelinz.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (29 loc) · 733 Bytes
/
makefile
File metadata and controls
38 lines (29 loc) · 733 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
28
29
30
31
32
33
34
35
36
37
38
# Makefile for Jekyll commands
# Variables
JEKYLL_CMD = jekyll serve
LIVERELOAD_FLAG = --livereload
FORCE_POLLING_FLAG = --force_polling
# Default target
all: serve
# Helper for Juergen ;)
run: serve-livereload
# Serve the site
serve:
$(JEKYLL_CMD)
clean:
@echo "Cleaning up..."
@rm -rf _site
@rm -rf .jekyll-cache
@rm -rf .sass-cache
@rm -rf vendor/bundle
# Serve the site with live reload
serve-livereload:
$(JEKYLL_CMD) $(LIVERELOAD_FLAG)
# Serve the site with live reload and force polling (for Windows)
serve-windows:
$(JEKYLL_CMD) $(LIVERELOAD_FLAG) $(FORCE_POLLING_FLAG)
install:
@echo "Installing dependencies..."
@bundle install
@bundle exec jekyll build
.PHONY: all serve serve-livereload serve-windows