forked from happi/theBeamBook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·39 lines (29 loc) · 1.33 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
ABFLAGS = --backend=docbook --doctype=book --attribute=revisionhistory
adocs = book.asciidoc
# introduction.asciidoc \
# preface.asciidoc \
# compiler.asciidoc \
# beam.asciidoc \
# beam_modules.asciidoc \
# processes.asciidoc \
# type_system.asciidoc \
# memory.asciidoc \
# erts-book.asciidoc \
# ap-beam_instructions.asciidoc \
# opcodes_doc.asciidoc
all: beam-book.pdf
book-revhistory.xml: .git
./gitlog.sh git-log.xml $@
beam-book-from-ab.xml: $(adocs)\
book-revhistory.xml
asciidoc $(ABFLAGS) -o $@ book.asciidoc
beam-book.pdf: beam-book-from-ab.xml book-revhistory.xml
dblatex beam-book-from-ab.xml -o $@
# $(subst .asciidoc,.html, $(adocs)): %.html: %.asciidoc
# asciidoc -a icons -a toc2 $<
# index.html: *.asciidoc
# asciidoc -o index.html -a icons -a toc2 book.asciidoc
# generate_op_doc.beam: generate_op_doc.erl
# erlc generate_op_doc.erl
# opcodes_doc.asciidoc: ../otp/lib/compiler/src/genop.tab generate_op_doc.beam
# erl -noshell -s generate_op_doc from_shell ../otp/lib/compiler/src/genop.tab opcodes_doc.asciidoc