forked from happi/theBeamBook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Followed the in struction here: https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings
- Loading branch information
Showing
20 changed files
with
3,885 additions
and
3,885 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
ASSET_CHAPTERS = $(shell find chapters -type f) | ||
|
||
all: chapters/contributors.txt beam-book.pdf index.html | ||
|
||
chapters/contributors.txt: .git | ||
./bin/gitlog.sh $@ | ||
|
||
beam-book.pdf: chapters/opcodes_doc.asciidoc book.asciidoc chapters/contributors.txt $(ASSET_CHAPTERS) | ||
asciidoctor-pdf -r ./style/custom-pdf-converter.rb -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=./style/ditaa.cfg --doctype=book -a pdf-style=./style/pdf-theme.yml book.asciidoc -o $@ | ||
|
||
index.html: $(ASSET_CHAPTERS) | ||
cp -r images site | ||
asciidoctor -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=style/ditaa.cfg --backend=html5 --doctype=book -o site/index.html book.asciidoc --trace | ||
rsync -R code/*/*.png site | ||
|
||
code/book/ebin/generate_op_doc.beam: code/book/src/generate_op_doc.erl | ||
erlc -o $(dir $@) $< | ||
|
||
chapters/opcodes_doc.asciidoc: genop.tab code/book/ebin/generate_op_doc.beam | ||
erl -pa code/book/ebin/ -noshell -s generate_op_doc from_shell genop.tab chapters/opcodes_doc.asciidoc | ||
|
||
genop.tab: | ||
wget -O genop.tab https://raw.githubusercontent.com/erlang/otp/master/lib/compiler/src/genop.tab | ||
touch $@ | ||
|
||
clean: | ||
find site -type f -name '.[^gitignore]*' -delete | ||
rm -rfv beam-book.pdf site/index.html site/*.png site/*.md5 xml/*.png xml/*.md5 xml/beam-book-from-ab.xml ./images/diag-*.png site/code/*/*.png site/images/* | ||
rmdir site/code/* site/images site/code | ||
ASSET_CHAPTERS = $(shell find chapters -type f) | ||
|
||
all: chapters/contributors.txt beam-book.pdf index.html | ||
|
||
chapters/contributors.txt: .git | ||
./bin/gitlog.sh $@ | ||
|
||
beam-book.pdf: chapters/opcodes_doc.asciidoc book.asciidoc chapters/contributors.txt $(ASSET_CHAPTERS) | ||
asciidoctor-pdf -r ./style/custom-pdf-converter.rb -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=./style/ditaa.cfg --doctype=book -a pdf-style=./style/pdf-theme.yml book.asciidoc -o $@ | ||
|
||
index.html: $(ASSET_CHAPTERS) | ||
cp -r images site | ||
asciidoctor -r asciidoctor-diagram -r ./style/custom-admonition-block.rb -a config=style/ditaa.cfg --backend=html5 --doctype=book -o site/index.html book.asciidoc --trace | ||
rsync -R code/*/*.png site | ||
|
||
code/book/ebin/generate_op_doc.beam: code/book/src/generate_op_doc.erl | ||
erlc -o $(dir $@) $< | ||
|
||
chapters/opcodes_doc.asciidoc: genop.tab code/book/ebin/generate_op_doc.beam | ||
erl -pa code/book/ebin/ -noshell -s generate_op_doc from_shell genop.tab chapters/opcodes_doc.asciidoc | ||
|
||
genop.tab: | ||
wget -O genop.tab https://raw.githubusercontent.com/erlang/otp/master/lib/compiler/src/genop.tab | ||
touch $@ | ||
|
||
clean: | ||
find site -type f -name '.[^gitignore]*' -delete | ||
rm -rfv beam-book.pdf site/index.html site/*.png site/*.md5 xml/*.png xml/*.md5 xml/beam-book-from-ab.xml ./images/diag-*.png site/code/*/*.png site/images/* | ||
rmdir site/code/* site/images site/code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,108 @@ | ||
[[AP-listings]] | ||
[appendix] | ||
= Full Code Listings | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/beam_modules_chapter/src/beamfile.erl[] | ||
---- | ||
|
||
// [source,erlang] | ||
// ---- | ||
// include::../stack_machine.erl[] | ||
// ---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/world.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/json_parser.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/json_test.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/processes_chapter/src/msg.erl[] | ||
---- | ||
|
||
|
||
[source,erlang] | ||
---- | ||
include::../code/beam_chapter/src/stack_machine_compiler.erl[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/beam_chapter/src/vsm.c[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/beam_chapter/src/token_threaded_vsm.c[] | ||
---- | ||
|
||
// [source,erlang] | ||
// ---- | ||
// include::../add.erl[] | ||
// ---- | ||
|
||
// [source,beam] | ||
// ---- | ||
// include::../add.S[] | ||
// ---- | ||
|
||
[[listing-share]] | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/share.erl[] | ||
---- | ||
|
||
[[listing-send]] | ||
|
||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/send.erl[] | ||
---- | ||
|
||
[[listing-lb]] | ||
Load Balancer. | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/lb.erl[] | ||
---- | ||
|
||
[[listing-show]] | ||
show. | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/type_system_chapter/src/show.erl[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/building_chapter/hipe_debug.patch[] | ||
---- | ||
|
||
|
||
// [[listing-lbS]] | ||
// [source,beam] | ||
// ---- | ||
// include::../lb.S[] | ||
// ---- | ||
|
||
// [[listing-gdb]] | ||
// [source,c] | ||
// ---- | ||
// include::../gdb_scripts[] | ||
// ---- | ||
[[AP-listings]] | ||
[appendix] | ||
= Full Code Listings | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/beam_modules_chapter/src/beamfile.erl[] | ||
---- | ||
|
||
// [source,erlang] | ||
// ---- | ||
// include::../stack_machine.erl[] | ||
// ---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/world.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/json_parser.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/compiler_chapter/src/json_test.erl[] | ||
---- | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/processes_chapter/src/msg.erl[] | ||
---- | ||
|
||
|
||
[source,erlang] | ||
---- | ||
include::../code/beam_chapter/src/stack_machine_compiler.erl[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/beam_chapter/src/vsm.c[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/beam_chapter/src/token_threaded_vsm.c[] | ||
---- | ||
|
||
// [source,erlang] | ||
// ---- | ||
// include::../add.erl[] | ||
// ---- | ||
|
||
// [source,beam] | ||
// ---- | ||
// include::../add.S[] | ||
// ---- | ||
|
||
[[listing-share]] | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/share.erl[] | ||
---- | ||
|
||
[[listing-send]] | ||
|
||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/send.erl[] | ||
---- | ||
|
||
[[listing-lb]] | ||
Load Balancer. | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/memory_chapter/src/lb.erl[] | ||
---- | ||
|
||
[[listing-show]] | ||
show. | ||
|
||
[source,erlang] | ||
---- | ||
include::../code/type_system_chapter/src/show.erl[] | ||
---- | ||
|
||
[source,c] | ||
---- | ||
include::../code/building_chapter/hipe_debug.patch[] | ||
---- | ||
|
||
|
||
// [[listing-lbS]] | ||
// [source,beam] | ||
// ---- | ||
// include::../lb.S[] | ||
// ---- | ||
|
||
// [[listing-gdb]] | ||
// [source,c] | ||
// ---- | ||
// include::../gdb_scripts[] | ||
// ---- |
Oops, something went wrong.