Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (62 sloc) 1.743 kB
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
1
ec22f72 updated notes on what versions of AsciiDoc work
kragen authored
2 # asciidoc 8.4.3 and 8.5.2 are known to work. asciidoc 8.2.5 and 8.2.6 are known not to work.
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
3 ASCIIDOC=asciidoc
4
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
5 GENERATED_METAFILES= \
6 TOC.html
7
8 GENERATED_CHAPTERS= \
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
9 00_about.html \
10 01_intro.html \
38ade9f Add a preliminary meta-section to the reference manual.
Nick Mathewson authored
11 Ref0_meta.html \
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
12 Ref1_libsetup.html \
13 Ref2_eventbase.html \
556f543 Chapter 4: events.
Nick Mathewson authored
14 Ref3_eventloop.html \
a5a44aa Add a chapter on evutil. It incorporates way too many other standard…
Nick Mathewson authored
15 Ref4_event.html \
5ca01dc Add chapter 6 on introduction to bufferevents. Longest one yet.
Nick Mathewson authored
16 Ref5_evutil.html \
5ac723a Add a reference chapter for evbuffers.
Nick Mathewson authored
17 Ref6_bufferevent.html \
896b4d7 Actually generate chapter 6a :p
Nick Mathewson authored
18 Ref6a_advanced_bufferevents.html \
0b322ec New documentation for evconnlistener.
Nick Mathewson authored
19 Ref7_evbuffer.html \
9b5e23c Better support for building the book as one-page
Nick Mathewson authored
20 Ref8_listener.html \
875dc14 Add a more liberal license for the example source.
Nick Mathewson authored
21 Ref9_dns.html \
22 license_bsd.html
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
23
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
24 GENERATED_HTML = $(GENERATED_METAFILES) $(GENERATED_CHAPTERS)
25
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
26 all: html examples
27
1de56aa Add support for building a PDF file.
Nick Mathewson authored
28 # Note that this won't give you good results unless you have a very
29 # recent asciidoc. Asciidoc 8.5.3 is recommended.
9b5e23c Better support for building the book as one-page
Nick Mathewson authored
30 pdf: LibeventBook.pdf
31
32 LibeventBook.pdf: *.txt examples*/*.c
33 a2x -f pdf LibeventBook.txt
1de56aa Add support for building a PDF file.
Nick Mathewson authored
34
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
35 html: $(GENERATED_HTML)
36
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
37 check: examples inline_examples
38
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
39 examples:
40 cd examples_01 && $(MAKE)
c41333a Document bufferevent_connect_hostname.
Nick Mathewson authored
41 cd examples_R6 && $(MAKE)
3ae2773 Add ssl echo server example to the example build system; remove dupli…
Nick Mathewson authored
42 cd examples_R6a && $(MAKE)
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
43 cd examples_R8 && $(MAKE)
9b5e23c Better support for building the book as one-page
Nick Mathewson authored
44 cd examples_R9 && $(MAKE)
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
45
46 inline_examples:
47 ./bin/build_examples.py *_*.txt
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
48
dd065b4 Make the Makefile work. add html to gitignore
Nick Mathewson authored
49 .SUFFIXES: .txt .html
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
50
51 .txt.html:
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
52 $(ASCIIDOC) $<
dd065b4 Make the Makefile work. add html to gitignore
Nick Mathewson authored
53
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
54 00_about.html: license.txt
55 01_intro.html: examples_01/*.c license.txt
38ade9f Add a preliminary meta-section to the reference manual.
Nick Mathewson authored
56 Ref1_meta.html: license.txt
b71b5e5 Insert a license file and start writing the reference manual
Nick Mathewson authored
57 Ref1_libsetup.html: license.txt
58 Ref2_eventbase.html: license.txt
59 Ref3_eventloop.html: license.txt
556f543 Chapter 4: events.
Nick Mathewson authored
60 Ref4_event.html: license.txt
a5a44aa Add a chapter on evutil. It incorporates way too many other standard…
Nick Mathewson authored
61 Ref5_evutil.html: license.txt
9b5e23c Better support for building the book as one-page
Nick Mathewson authored
62 Ref6_bufferevent.html: examples_R6/*.c license.txt
3ae2773 Add ssl echo server example to the example build system; remove dupli…
Nick Mathewson authored
63 Ref6a_advanced_bufferevent.html: examples_R6a/*.c license.txt
5ac723a Add a reference chapter for evbuffers.
Nick Mathewson authored
64 Ref7_evbuffer.html: license.txt
9b5e23c Better support for building the book as one-page
Nick Mathewson authored
65 Ref8_listener.html: examples_R8/*.c license.txt
66 Ref9_dns.html: examples_R9/*.c license.txt
dd065b4 Make the Makefile work. add html to gitignore
Nick Mathewson authored
67
6c551c0 Initial checkin for libevent book; mostly example code.
Nick Mathewson authored
68 clean:
69 rm -f *~
70 rm -f *.o
71 rm -f $(GENERATED_HTML)
dd065b4 Make the Makefile work. add html to gitignore
Nick Mathewson authored
72 cd examples_01 && $(MAKE) clean
b564241 Have the example-building code look at LEBOOK_CFLAGS
Nick Mathewson authored
73 cd examples_R8 && $(MAKE) clean
74 rm -rf tmpcode_*
dd065b4 Make the Makefile work. add html to gitignore
Nick Mathewson authored
75
5a78ea7 Add a count-words-or-lines target
Nick Mathewson authored
76 count:
77 wc -w *.txt
78 wc -l examples_*/*.c
Something went wrong with that request. Please try again.