-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
55 lines (37 loc) · 1.15 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
CASK=cask
EMACS=emacs
CASKRUN=$(CASK) exec emacs --debug --script
WING=$(CASKRUN) script/build.el --
ADOC_FILES = $(wildcard adoc/*.adoc) $(wildcard src/tawny/tutorial/*.adoc)
all: slides book pre-req
test: all
## lein run is part of the practical!
lein run
install:
$(CASK) install
gen-src: install
$(WING) gen-src
slides: gen-src slides-fast
slides-fast: adoc/2015_swat4ls.html
adoc/2015_swat4ls.html: $(ADOC_FILES)
asciidoc adoc/2015_swat4ls.adoc
book: gen-src book-fast
book-fast: adoc/2015_swat4ls_book.html
adoc/2015_swat4ls_book.html: $(ADOC_FILES)
asciidoc --backend=html --out-file adoc/2015_swat4ls_book.html adoc/2015_swat4ls.adoc
pdf: gen-src pdf-fast
pdf-fast: adoc/2015_swat4ls.pdf
adoc/2015_swat4ls.pdf: $(ADOC_FILES)
a2x --dblatex-opts \
"-P latex.output.revhistory=0 -P doc.toc.show=0 --texstyle=adoc/asciidoc-dblatex.sty" \
--asciidoc-opts="-d book" \
adoc/2015_swat4ls_pdf_wrapper.adoc
mv adoc/2015_swat4ls_pdf_wrapper.pdf adoc/2015_swat4ls.pdf
pre-req: adoc/2015_prerequisites.adoc
asciidoc adoc/2015_prerequisites.adoc
clean:
rm adoc/*html
rm src/tawny/tutorial/*adoc
rm output/*omn
rm output/*owl
-include Makefile-local