summaryrefslogtreecommitdiffstats
path: root/debian/vendor-h2o/doc/Makefile
blob: 5cd5f2984aa5ea8f1388e292210b686641565325 (plain)
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
56
VPATH=../srcdoc
OUTPUT=\
    index.html \
    install.html \
    benchmarks.html \
    configure.html \
    configure/quick_start.html \
    configure/command_options.html \
    configure/syntax_and_structure.html \
    configure/base_directives.html \
    configure/compress_directives.html \
    configure/http1_directives.html \
    configure/http2_directives.html \
    configure/access_log_directives.html \
    configure/errordoc_directives.html \
    configure/expires_directives.html \
    configure/fastcgi_directives.html \
    configure/file_directives.html \
    configure/headers_directives.html \
    configure/mruby_directives.html \
    configure/proxy_directives.html \
    configure/redirect_directives.html \
    configure/reproxy_directives.html \
    configure/status_directives.html \
    configure/throttle_response_directives.html \
    configure/basic_auth.html \
    configure/cgi.html \
    configure/mruby.html \
    configure/dos_detection.html \
    configure/access_control.html \
    faq.html \

%.html: %.mt snippets/directive.mt snippets/wrapper.mt
	../misc/makedoc.pl $< $@

all: mkdir html search/searchindex.js

mkdir:
	mkdir -p doc/configure

html: $(OUTPUT)

search/searchindex.js: html
	../misc/oktavia/bin/oktavia-mkindex $(patsubst %,-i %,$(OUTPUT)) -m html -u h2 -c 10 -t js -s english

publish: all
	@if [ -z "$$PUBLISH" ] ; then \
		echo "environment variable PUBLISH not set" >&2 ; \
		exit 1; \
	fi
	tar cf - `git ls-files` | (cd $$PUBLISH && tar xf -)

clean:
	rm -f $(OUTPUT) search/searchindex.js

.PHONY: mkdir html publish publish-check do-publish