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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
INTERFACES = \
connection.md \
stream.md
MODULES = \
http.bit.md \
http.client.md \
http.cookie.md \
http.h1_connection.md \
http.h1_reason_phrases.md \
http.h1_stream.md \
http.h2_connection.md \
http.h2_error.md \
http.h2_stream.md \
http.headers.md \
http.hpack.md \
http.hsts.md \
http.proxies.md \
http.request.md \
http.server.md \
http.socks.md \
http.tls.md \
http.util.md \
http.version.md \
http.websocket.md \
http.zlib.md \
http.compat.prosody.md \
http.compat.socket.md
FILES = \
introduction.md \
interfaces.md \
$(addprefix interfaces/,$(INTERFACES)) \
modules.md \
$(addprefix modules/,$(MODULES)) \
links.md
all: lua-http.html lua-http.pdf lua-http.3
lua-http.html: template.html site.css metadata.yaml $(FILES)
pandoc -o $@ -t html5 -s --toc --template=template.html --section-divs --self-contained -c site.css metadata.yaml $(FILES)
lua-http.pdf: metadata.yaml $(FILES)
pandoc -o $@ -t latex -s --toc --toc-depth=2 -V documentclass=article -V classoption=oneside -V links-as-notes -V geometry=a4paper,includeheadfoot,margin=2.54cm metadata.yaml $(FILES)
lua-http.3: metadata.yaml $(FILES)
pandoc -o $@ -t man -s metadata.yaml $(FILES)
man: lua-http.3
man -l $^
clean:
rm -f lua-http.html lua-http.pdf lua-http.3
.PHONY: all man install clean
|