-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
35 lines (28 loc) · 712 Bytes
/
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
all: html
html:
mkdir -p dist
emacs --batch -q -l build.el --kill ## Compile org-pages to utml
mv dist/README.html dist/index.html ## Create dist/index.html (gh-pages repository)
## Prepare files for upload.
cp -r -v images/* dist/images/
cp -r *.org dist/
# cp -r theme/* dist/theme
cp -r -v codes/* dist/codes
browse:
firefox dist/index.html
# Upload the dist/* to origin/gh-pages
upload:
cd dist && \
git add images && \
git add codes && \
git add theme && \
git add *.org && \
git add *.html && \
git status && \
git commit -a -m "Update pages" && \
git push
# Send master branch to origin/master
push:
git push
clean:
rm -rf dist/*.html dist/*.html~