forked from caiorss/org-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (46 loc) · 1.23 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
all: build
html := dist/index.html
install:
emacs --batch --eval "(package-install-file \"org-wiki.el\")" --kill
# Rules to build documentation
html: $(html)
$(html): README.org
emacs README.org --batch -q -f org-html-export-to-html --kill
mv README.html index.html
cp index.html dist/index.html
html-open: $(html)
firefox dist/index.html
html-clean:
rm -rf $(html)
html-redo:
rm -rf $(html)
emacs README.org --batch -q -f org-html-export-to-html --kill
mv README.html index.html
cp index.html dist/index.html
html-dist: html-redo
cd dist && git add index.html
mkdir -p dist/wiki
cp -r -v sandbox/wiki/* dist/wiki
cd dist && git add wiki
cd dist && git commit -a -m "update html doc"
cd dist && git push
view-github:
firefox https://caiorss.github.io/org-wiki
view-wiki-github:
firefox https://caiorss.github.io/org-wiki/wiki/index.html
build:
emacs -l ~/.emacs.d/init.el --batch -f batch-byte-compile org-wiki.el
clean:
rm -rf *.elc
# Sandbox commands
sandbox-run:
@echo "Running sandbox"
cd ./sandbox && sh sandbox.sh run
sandbox-reload:
@echo "Cleaning sandbox"
rm -rf ./sandbox/elpa
@echo "Running sandbox"
cd ./sandbox && sh sandbox.sh run
sandbox-clean:
@echo "Cleaning sandbox"
rm -rf ./sandbox/elpa