blob: 0849e406faf25d82fc74f0212a1b3a41d41a3168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# A simple makefile to generate documentation from .md using pandoc
PANDOC ?= pandoc
LUADOC ?= ./lua_api.pl
all: man
man: rspamd.8 rspamc.1
rspamd.8: rspamd.8.md
$(PANDOC) -s -f markdown -t man -o rspamd.8 rspamd.8.md
rspamc.1: rspamc.1.md
$(PANDOC) -s -f markdown -t man -o rspamc.1 rspamc.1.md
lua-doc: lua_regexp lua_ip
lua_regexp: ../src/lua/lua_regexp.c
$(LUADOC) < ../src/lua/lua_regexp.c > markdown/lua/regexp.md
lua_ip: ../src/lua/lua_ip.c
$(LUADOC) < ../src/lua/lua_ip.c > markdown/lua/ip.md
|