-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
29 lines (19 loc) · 812 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
all:
echo "huh?"
local-install: ctan
@./helpers/local-install.sh wallcalendar.zip
ctan:
@./helpers/ctan.sh
tangle-code:
cd doc && emacs --batch -L -l 'wallcalendar-code.org' --eval "(require 'org)" --eval '(org-babel-tangle "wallcalendar-code.org")'
export-code:
cd doc && emacs --batch -L -l 'wallcalendar-code.org' -l 'export-init.el' --eval '(org-latex-export-to-latex)'
export-manual:
cd doc && emacs --batch -L -l 'wallcalendar.org' -l 'export-init.el' --eval '(org-latex-export-to-latex)'
wallcalendar.cls: tangle-code
wallcalendar.pdf: export-manual
cd doc && latexmk wallcalendar.tex
wallcalendar-code.pdf: export-code
cd doc && latexmk wallcalendar-code.tex
dist: wallcalendar.cls wallcalendar.pdf wallcalendar-code.pdf
cd doc && cp wallcalendar.pdf .. && cp wallcalendar-code.pdf ..