2013-12-27 19:04:56 +01:00
|
|
|
# A simple makefile to generate documentation from .md using pandoc
|
|
|
|
|
|
|
|
PANDOC ?= pandoc
|
2014-09-06 23:43:43 +02:00
|
|
|
LUADOC ?= doxydown/doxydown.pl
|
2013-12-27 19:04:56 +01:00
|
|
|
|
|
|
|
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
|
2014-08-26 16:45:24 +02:00
|
|
|
|
2014-09-08 10:38:53 +02:00
|
|
|
lua-doc: lua_regexp lua_ip lua_config lua_task lua_ucl
|
2014-08-26 16:45:24 +02:00
|
|
|
|
|
|
|
lua_regexp: ../src/lua/lua_regexp.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_regexp.c > markdown/lua/regexp.md
|
2014-08-28 14:09:01 +02:00
|
|
|
lua_ip: ../src/lua/lua_ip.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_ip.c > markdown/lua/ip.md
|
2014-08-30 19:37:42 +02:00
|
|
|
lua_config: ../src/lua/lua_config.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_config.c > markdown/lua/config.md
|
2014-09-06 23:25:23 +02:00
|
|
|
lua_task: ../src/lua/lua_task.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_task.c > markdown/lua/task.md
|
2015-02-26 11:46:09 +01:00
|
|
|
lua_ucl: ../contrib/libucl/lua_ucl.c
|
|
|
|
$(LUADOC) < ../contrib/libucl/lua_ucl.c > markdown/lua/ucl.md
|