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
|
2018-02-23 14:32:17 +01:00
|
|
|
LLUADOC ?= ${LUADOC} -l lua -e lua
|
2013-12-27 19:04:56 +01:00
|
|
|
|
|
|
|
all: man
|
|
|
|
|
2015-09-28 17:45:01 +02:00
|
|
|
man: rspamd.8 rspamc.1 rspamadm.1
|
2013-12-27 19:04:56 +01:00
|
|
|
|
|
|
|
rspamd.8: rspamd.8.md
|
2015-12-21 15:46:13 +01:00
|
|
|
$(PANDOC) -s -f markdown -t man -o rspamd.8 rspamd.8.md
|
2013-12-27 19:04:56 +01:00
|
|
|
rspamc.1: rspamc.1.md
|
2015-09-28 17:45:01 +02:00
|
|
|
$(PANDOC) -s -f markdown -t man -o rspamc.1 rspamc.1.md
|
|
|
|
rspamadm.1: rspamadm.1.md
|
|
|
|
$(PANDOC) -s -f markdown -t man -o rspamadm.1 rspamadm.1.md
|
2015-12-21 15:46:13 +01:00
|
|
|
|
2018-02-23 14:32:17 +01:00
|
|
|
lua-dirs:
|
|
|
|
mkdir -p markdown/lua
|
|
|
|
|
2018-03-14 19:11:40 +01:00
|
|
|
lua-doc: lua-dirs rspamd_regexp rspamd_ip rspamd_config rspamd_task ucl rspamd_http rspamd_trie \
|
2018-02-23 14:32:17 +01:00
|
|
|
rspamd_resolver rspamd_redis rspamd_upstream_list rspamd_expression rspamd_mimepart rspamd_logger rspamd_url \
|
|
|
|
rspamd_tcp rspamd_mempool rspamd_html rspamd_util rspamd_fann rspamd_sqlite3 rspamd_cryptobox \
|
|
|
|
lua_redis lua_util lua_maps
|
|
|
|
|
|
|
|
lua_redis:
|
|
|
|
$(LLUADOC) < ../lualib/lua_redis.lua > markdown/lua/lua_redis.md
|
|
|
|
|
|
|
|
lua_util:
|
|
|
|
$(LLUADOC) < ../lualib/lua_util.lua > markdown/lua/lua_util.md
|
|
|
|
|
|
|
|
lua_maps:
|
|
|
|
$(LLUADOC) < ../lualib/lua_maps.lua > markdown/lua/lua_maps.md
|
|
|
|
|
|
|
|
rspamd_regexp: ../src/lua/lua_regexp.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_regexp.c > markdown/lua/rspamd_regexp.md
|
|
|
|
rspamd_ip: ../src/lua/lua_ip.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_ip.c > markdown/lua/rspamd_ip.md
|
|
|
|
rspamd_config: ../src/lua/lua_config.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_config.c > markdown/lua/rspamd_config.md
|
2018-03-14 19:11:40 +01:00
|
|
|
rspamd_task: ../src/lua/lua_task.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_task.c > markdown/lua/rspamd_task.md
|
2018-02-23 14:32:17 +01:00
|
|
|
ucl: ../contrib/libucl/lua_ucl.c
|
2015-02-26 11:46:09 +01:00
|
|
|
$(LUADOC) < ../contrib/libucl/lua_ucl.c > markdown/lua/ucl.md
|
2018-02-23 14:32:17 +01:00
|
|
|
rspamd_http: ../src/lua/lua_http.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_http.c > markdown/lua/rspamd_http.md
|
|
|
|
rspamd_trie: ../src/lua/lua_trie.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_trie.c > markdown/lua/rspamd_trie.md
|
|
|
|
rspamd_resolver: ../src/lua/lua_dns.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_dns.c > markdown/lua/rspamd_resolver.md
|
|
|
|
rspamd_redis: ../src/lua/lua_redis.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_redis.c > markdown/lua/rspamd_redis.md
|
|
|
|
rspamd_upstream_list: ../src/lua/lua_upstream.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_upstream.c > markdown/lua/rspamd_upstream.md
|
|
|
|
rspamd_expression: ../src/lua/lua_expression.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_expression.c > markdown/lua/rspamd_expression.md
|
|
|
|
rspamd_mimepart: ../src/lua/lua_mimepart.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_mimepart.c > markdown/lua/rspamd_mimepart.md
|
|
|
|
rspamd_logger: ../src/lua/lua_logger.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_logger.c > markdown/lua/rspamd_logger.md
|
|
|
|
rspamd_url: ../src/lua/lua_url.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_url.c > markdown/lua/rspamd_url.md
|
|
|
|
rspamd_tcp: ../src/lua/lua_tcp.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_tcp.c > markdown/lua/rspamd_tcp.md
|
|
|
|
rspamd_mempool: ../src/lua/lua_mempool.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_mempool.c > markdown/lua/rspamd_mempool.md
|
|
|
|
rspamd_html: ../src/lua/lua_html.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_html.c > markdown/lua/rspamd_html.md
|
|
|
|
rspamd_util: ../src/lua/lua_util.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_util.c > markdown/lua/rspamd_util.md
|
|
|
|
rspamd_fann: ../src/lua/lua_fann.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_fann.c > markdown/lua/rspamd_fann.md
|
|
|
|
rspamd_sqlite3: ../src/lua/lua_sqlite3.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_sqlite3.c > markdown/lua/rspamd_sqlite3.md
|
|
|
|
rspamd_cryptobox: ../src/lua/lua_cryptobox.c
|
|
|
|
$(LUADOC) < ../src/lua/lua_cryptobox.c > markdown/lua/rspamd_cryptobox.md
|