aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-25 13:44:08 +0100
committerLoïc Hoguin <[email protected]>2015-03-25 13:44:08 +0100
commit83d8b63b8abb46b374439c8c8571091968af6260 (patch)
tree11a7bb370d43a7c25e4734eb7a6f7649ce9cdc61 /Makefile
parenteab45765497e6eb3e031cba5dad66a7a20ec3651 (diff)
downloadgun-83d8b63b8abb46b374439c8c8571091968af6260.tar.gz
gun-83d8b63b8abb46b374439c8c8571091968af6260.tar.bz2
gun-83d8b63b8abb46b374439c8c8571091968af6260.zip
Update the guide
A number of @todo remain in it and will be worked on shortly. The guide has been converted to Asciidoc and 'make asciidoc' will generate a PDF and a chunked HTML version.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ef34191..a30f455 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,7 @@ PROJECT = gun
# Options.
-CT_SUITES = twitter ws
CT_OPTS += -pa test -ct_hooks gun_ct_hook [] -boot start_sasl
-
PLT_APPS = ssl
# Dependencies.
@@ -20,3 +18,13 @@ dep_ct_helper = git https://github.com/extend/ct_helper.git master
# Standard targets.
include erlang.mk
+
+# AsciiDoc.
+
+asciidoc:
+ a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf
+ a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/* doc/
+ rmdir doc/src/guide/book.chunked
+
+clean::
+ $(gen_verbose) rm doc/guide.pdf doc/*.html doc/*.css