-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
87 lines (71 loc) · 2.25 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
SOURCE_DIR=./source/public
DEPLOY_DIR=./_deploy
PUBLIC_DIR=./_public
init: initialize setup gh-pages init-data guide
guide:
clear
cat ./lib/haroopress/QUICK.markdown
initialize:
npm install -g node-gyp
git submodule update --init --recursive
cd ./node_modules/robotskirt;node-gyp rebuild
cd ./node_modules/locally/;npm install
update:
@echo "========================================"
@echo "= update & initialize git submodules"
@echo "========================================"
git pull origin master
cd ./source/themes;git pull origin master
npm update
cd ./node_modules/robotskirt;node-gyp rebuild
init-data:
@echo "========================================"
@echo "= create default data set"
@echo "========================================"
./bin/init.js
setup:
@echo "========================================"
@echo "= configurate haroopress"
@echo "========================================"
./bin/setup.js
gh-pages: clear
@echo "========================================"
@echo "= setup repository for deployment"
@echo "========================================"
cd ./bin/;./gh-pages.js
clear:
@echo "========================================"
@echo "= clear public & deployment directories"
@echo "========================================"
./bin/clear.js
gen: clear
@echo "========================================"
@echo "= generate to static page"
@echo "========================================"
./bin/gen.js
mkdir -p ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/shower/themes ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/shower/scripts ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/bootstrap/* ${PUBLIC_DIR}
preview: gen
@echo "========================================"
@echo "= preview static page"
@echo "========================================"
./bin/preview.js
deploy: gen
@echo "========================================"
@echo "= deploy to github"
@echo "========================================"
cd ./bin;./deploy.js "${msg}"
new-post:
cd ./bin;./new-post.js
new-page:
cd ./bin;./new-page.js
new-slide:
cd ./bin;./new-slide.js
octopress:
@echo "========================================"
@echo "= convert from octopress"
@echo "========================================"
cd ./bin/convert/;./octopress.js
.PHONY: init update build clear