-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 728 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 728 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
.PHONY: run clean build post bundle-path
all:
@echo "****************************"
@echo "** github page build tool **"
@echo "****************************"
@echo "make <cmd>"
@echo ""
@echo "commands:"
@echo " run - run jekyll in dev mode"
@echo " build - build jekyll in dev mode"
@echo " clean - clear build artifacts"
@echo ""
@echo ""
print-%: ; @echo $*=$($*)
DATE?=`date +'%Y-%m-%d'`
POSTDIR="_posts"
bundle-path:
@bundle info --path minima
run:
@bundle exec jekyll serve --incremental
clean:
@bundle exec jekyll clean
build:
@bundle exec jekyll build
post:
@read -r -p "Enter new post title: " title; \
bundle exec jekyll post $${title};