-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (24 loc) · 905 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
EMACS=emacs
BATCH=$(EMACS) --batch --no-init-file \
--eval '(require (quote org))' \
--eval "(org-babel-do-load-languages 'org-babel-load-languages \
'((shell . t)))" \
--eval "(setq org-confirm-babel-evaluate nil)" \
--eval '(setq starter-kit-dir default-directory)' \
--eval '(org-babel-tangle-file "README.org")' \
--eval '(org-babel-load-file "README.org")'
FILES = darkfi.org
doc: html
html: $(FILES)
@mkdir -p pub/css
@$(BATCH) --visit "$<" --funcall org-publish-html
@rm -f *.el
@echo "NOTICE: Documentation published to pub/"
publish: html
@find pub -name *.*~ | xargs rm -f
@(cd pub/ && tar czvf /tmp/org-website-publish.tar.gz .)
@(cd ..;tar xzvf /tmp/org-website-publish.tar.gz; git commit -am "update website" && git push)
@echo "NOTICE: HTML documentation published"
clean:
@rm -f *.elc *.aux *.tex *.pdf *~
@rm -rf pub