-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathMakefile
42 lines (34 loc) · 1.57 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
all: article program
article: write-yourself-a-git.html
program: wyag libwyag.py
push: .last_push
.PHONY: all article clean program push test
write-yourself-a-git.html: write-yourself-a-git.org wyag libwyag.py
emacs --batch write-yourself-a-git.org \
--eval "(add-to-list 'load-path (expand-file-name \"./lib/htmlize\"))" \
--eval "(setq org-babel-inline-result-wrap \"%s\")" \
--eval "(setq org-confirm-babel-evaluate nil)" \
--eval "(setq python-indent-guess-indent-offset nil)" \
--eval "(setq org-export-with-broken-links t)" \
--eval "(setq org-html-htmlize-output-type 'css)" \
-f org-html-export-to-html
write-yourself-a-git.pdf: write-yourself-a-git.org wyag libwyag.py
emacs --batch write-yourself-a-git.org \
--eval "(add-to-list 'load-path (expand-file-name \"./lib/htmlize\"))" \
--eval "(setq org-babel-inline-result-wrap \"%s\")" \
--eval "(setq org-confirm-babel-evaluate nil)" \
--eval "(setq python-indent-guess-indent-offset nil)" \
--eval "(setq org-export-with-broken-links t)" \
-f org-latex-export-to-pdf
wyag libwyag.py: write-yourself-a-git.org
emacs --batch write-yourself-a-git.org -f org-babel-tangle
wyag.zip: wyag libwyag.py LICENSE
zip -r wyag.zip wyag libwyag.py LICENSE
clean:
rm -f wyag libwyag.py write-yourself-a-git.html .last_push wyag.zip
test: wyag libwyag.py
./wyag-tests.sh
.last_push: wyag.zip write-yourself-a-git.html
scp -r write-yourself-a-git.html k9.thb.lt\:/var/www/wyag.thb.lt/index.html; \
scp -r wyag.zip lib/org-html-themes/src k9.thb.lt:/var/www/wyag.thb.lt/; \
touch .last_push