Skip to content

Commit f9a9155

Browse files
Add Makefile for Jekyll commands with serve options (#53)
* Add Makefile for Jekyll commands with serve options * Update makefile --------- Co-authored-by: Juliano Costa <[email protected]>
1 parent d9b2992 commit f9a9155

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Makefile for Jekyll commands
2+
3+
# Variables
4+
JEKYLL_CMD = jekyll serve
5+
LIVERELOAD_FLAG = --livereload
6+
FORCE_POLLING_FLAG = --force_polling
7+
8+
# Default target
9+
all: serve
10+
11+
# Serve the site
12+
serve:
13+
$(JEKYLL_CMD)
14+
15+
# Serve the site with live reload
16+
serve-livereload:
17+
$(JEKYLL_CMD) $(LIVERELOAD_FLAG)
18+
19+
# Serve the site with live reload and force polling (for Windows)
20+
serve-windows:
21+
$(JEKYLL_CMD) $(LIVERELOAD_FLAG) $(FORCE_POLLING_FLAG)
22+
23+
.PHONY: all serve serve-livereload serve-windows

0 commit comments

Comments
 (0)