summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 528b6d5731af03da3898eb90f8d5b026a100ec31 (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
MANDOCS = catlfish.1 genconfig.1
RONN = ronn --warnings --organization="FIXME:\$$version"

all: configman man html

configman:
	../tools/compileconfig.py --manpagedir=.
	make catlfish-log.cfg.in.5
	make catlfish-node.cfg.5

man: $(MANDOCS)

html: $(addsuffix .html,$(MANDOCS))

%: %.md
	$(RONN) --roff $^

%: %.adoc
	a2x --doctype manpage --format manpage $^

%.html: %.md
	$(RONN) --html $^

clean:
	-rm -f $(MANDOCS) $(addsuffix .html,$(MANDOCS))