unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob fcda3c48be7f3c17ab33a789275d8b6a5f47731b 605 bytes (raw)
$ git show v1.1.4:Documentation/GNUmakefile	# shows this blob on the CLI

 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
 
all::

PANDOC = pandoc
PANDOC_OPTS = -f markdown --email-obfuscation=none --sanitize-html
pandoc = $(PANDOC) $(PANDOC_OPTS)
pandoc_html = $(pandoc) --toc -t html --no-wrap

man1 := $(addsuffix .1,unicorn unicorn_rails)
html1 := $(addsuffix .html,$(man1))

all:: html man

html: $(html1)
man: $(man1)

install-html: html
	mkdir -p ../doc/man1
	install -m 644 $(html1) ../doc/man1

install-man: man
	mkdir -p ../man/man1
	install -m 644 $(man1) ../man/man1

%.1: %.1.txt
	$(pandoc) -s -t man < $< > $@+ && mv $@+ $@
%.1.html: %.1.txt
	$(pandoc_html) < $< > $@+ && mv $@+ $@

clean::
	$(RM) $(man1) $(html1)

git clone https://yhbt.net/unicorn.git