Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 126 lines (102 sloc) 2.772 kb
b0499ab Marak First commit of new skeleton. Structure almost complete, still need to f...
Marak authored
1 # Makefile originally from the 'Mastering Node' book written TJ Holowaychuk
2 # https://github.com/visionmedia/masteringnode
3 #
4
e87d3c6 Marak update
Marak authored
5 PDF_FLAGS = --fontsize 9.0 \
de95528 Charlie McConnell [fix] Moved API instructions
AvianFlu authored
6 --linkstyle plain \
7 --linkcolor blue \
8 --embedfonts \
9 --footer "c 1" \
10 --no-toc
e87d3c6 Marak update
Marak authored
11
f57ae54 Joshua Holbrook Separated title page and introduction
jfhbrook authored
12 MD = pages/title.md \
7659be8 Joshua Holbrook [minor] I reworked the toc files a little bit.
jfhbrook authored
13 chapters/toc.md \
7bcfb47 Joshua Holbrook [minor] Some notes to self in the makefile
jfhbrook authored
14 chapters/introduction.md \
15 chapters/hello_world.md \
a1b5798 Joshua Holbrook Factored out the "tools" chapter into five separate chapters.
jfhbrook authored
16 chapters/platform_features.md \
17 chapters/jitsu.md \
18 chapters/web_admin.md \
19 chapters/json_api.md \
20 chapters/haibu.md \
030bb73 Joshua Holbrook [fix] Removed Troubleshooting chapter from makefile until it gets writte...
jfhbrook authored
21 chapters/open_source_projects.md \
434b3a2 Joshua Holbrook [doc] FAQ now included in contents tables
jfhbrook authored
22 chapters/faq.md \
3cea829 Joshua Holbrook [fix] Wrong chapter order in makefile
jfhbrook authored
23 chapters/support.md \
3f1e9d7 Joshua Holbrook [refactor] Moved appendices list to separate table
jfhbrook authored
24 appendices/toc.md \
fe7737b Joshua Holbrook [doc] Moved "Open Source Projects" further down
jfhbrook authored
25 appendices/package.json.md \
26 appendices/resources.md \
27 appendices/building_the_handbook.md
de95528 Charlie McConnell [fix] Moved API instructions
AvianFlu authored
28
f97f199 Joshua Holbrook Table of Contents added in Makefile
jfhbrook authored
29 README = pages/title.md \
3f1e9d7 Joshua Holbrook [refactor] Moved appendices list to separate table
jfhbrook authored
30 chapters/toc.readme.md \
fe7737b Joshua Holbrook [doc] Moved "Open Source Projects" further down
jfhbrook authored
31 chapters/introduction.md \
32 chapters/hello_world.md \
33 chapters/platform_features.md \
34 chapters/jitsu.md \
35 chapters/web_admin.md \
36 chapters/json_api.md \
37 chapters/haibu.md \
030bb73 Joshua Holbrook [fix] Removed Troubleshooting chapter from makefile until it gets writte...
jfhbrook authored
38 chapters/open_source_projects.md \
434b3a2 Joshua Holbrook [doc] FAQ now included in contents tables
jfhbrook authored
39 chapters/faq.md \
ab888b8 Joshua Holbrook [doc] Removed appendices from readme
jfhbrook authored
40 chapters/support.md
34d4b64 Charlie McConnell Reorganized table of contents
AvianFlu authored
41
a201c42 Joshua Holbrook [refactor] Makefile only pulls the introduction for the ReadMe, for now....
jfhbrook authored
42 API = chapters/json_api.md
e87d3c6 Marak update
Marak authored
43
44 HTML = $(MD:.md=.html)
45
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
46 all: book.html book.pdf book.md ReadMe.md API.md website clear
e87d3c6 Marak update
Marak authored
47
48 regenerate: clean all
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
49 git commit -a -m '[dist] Regenerated handbook' && echo done
e87d3c6 Marak update
Marak authored
50
3c440b3 Joshua Holbrook [dist] Regenerated handbook
jfhbrook authored
51 publish: clean all
52 git commit -am '[dist] Regenerated handbook'
53 git push origin master
54 ./bin/deploy.sh
55
e87d3c6 Marak update
Marak authored
56 book.pdf: $(HTML)
57 @echo "\n... generating $@"
aeb5a3b Charlie McConnell [fix] Fixed broken makefile.
AvianFlu authored
58 htmldoc --webpage -f $@ $(PDF_FLAGS) $(HTML)
e87d3c6 Marak update
Marak authored
59
a49157e Marak Added book.md to Makefile
Marak authored
60 book.md: $(HTML)
61 @echo "\n... generating $@"
62 cat $(MD) > book.md
de95528 Charlie McConnell [fix] Moved API instructions
AvianFlu authored
63
00a10ec Marak messing with ReadMe.md
Marak authored
64 ReadMe.md: $(HTML)
65 @echo "\n... generating $@"
de95528 Charlie McConnell [fix] Moved API instructions
AvianFlu authored
66 cat $(README) > ReadMe.md
67
68 API.md: $(HTML)
69 @echo "\n... generating $@"
70 cat $(API) > API.md
a49157e Marak Added book.md to Makefile
Marak authored
71
e87d3c6 Marak update
Marak authored
72 book.html: pages/head.html pages/tail.html $(HTML)
73 @echo "\n... generating $@"
74 @echo $(HTML)
75 cat pages/head.html $(HTML) pages/tail.html > book.html
76
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
77 public:
78 mkdir public
79
80 website: book.html public
77fad1d Joshua Holbrook [ux] Made book.html deployable to handbook.jit.su
jfhbrook authored
81 @echo "\n... copying items into ./public"
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
82 cp book.html public/index.html
77fad1d Joshua Holbrook [ux] Made book.html deployable to handbook.jit.su
jfhbrook authored
83 cp book.pdf public/book.pdf
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
84 cp -r fig public/fig
85
86 serve: website
87 @echo "\n... serving website!"
88 node ./bin/server
89
e87d3c6 Marak update
Marak authored
90 %.html: %.md
91 ronn --pipe --fragment $< \
001be3a Charlie McConnell Regenerated book
AvianFlu authored
92 | sed -r 's/<h1>([^ ]+) - /<h1>/' \
e87d3c6 Marak update
Marak authored
93 > $@
94
95 book.mobi:
96 @echo "\n... generating $@"
97 ebook-convert book.html book.mobi --output-profile kindle
98
99 book.epub:
100 @echo "\n... generating $@"
101 ebook-convert book.html book.epub \
b0499ab Marak First commit of new skeleton. Structure almost complete, still need to f...
Marak authored
102 --title "Nodejitsu Handbook" \
e87d3c6 Marak update
Marak authored
103 --no-default-epub-cover \
6cf3789 Joshua Holbrook [minor] Added "Joshua Holbrook" to epub authors
jfhbrook authored
104 --authors "Marak Squires, Joshua Holbrook" \
e87d3c6 Marak update
Marak authored
105 --language en \
106 --cover pages/cover.jpg
107
108 view: book.pdf
109 open book.pdf
110
111 clean:
112 rm -f book.*
113 rm -f chapters/*.html
0871ca3 Joshua Holbrook [minor] I guess tabs are treated differently than spaces in makefiles. L...
jfhbrook authored
114 rm -f appendices/*.html
3bd5b8f Joshua Holbrook [dist] Regenerated handbook
jfhbrook authored
115 rm -f pages/index.html
116 rm -f pages/title.html
b321657 Joshua Holbrook [dist] Added "website" target to makefile
jfhbrook authored
117 rm -rf public
e87d3c6 Marak update
Marak authored
118
1470fb2 Marak Updates to docs, updates to makefile
Marak authored
119 clear:
120 rm -f chapters/*.html
0871ca3 Joshua Holbrook [minor] I guess tabs are treated differently than spaces in makefiles. L...
jfhbrook authored
121 rm -f appendices/*.html
9fcd972 Marak updates
Marak authored
122 rm -f pages/index.html
3bd5b8f Joshua Holbrook [dist] Regenerated handbook
jfhbrook authored
123 rm -f pages/title.html
1470fb2 Marak Updates to docs, updates to makefile
Marak authored
124
f57ae54 Joshua Holbrook Separated title page and introduction
jfhbrook authored
125 .PHONY: view clean regenerate
Something went wrong with that request. Please try again.