summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-04-02 16:34:13 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-04-03 00:45:53 +0300
commit3baaf91de453d35b095881478be8d88b3fc2b97a (patch)
treedbeeedc851f0d8130907574ef8506904c5c44570 /Makefile
parentc7bce46f22ff9c41e3598d42400368d3c733316c (diff)
downloadaconf-3baaf91de453d35b095881478be8d88b3fc2b97a.tar.bz2
aconf-3baaf91de453d35b095881478be8d88b3fc2b97a.tar.xz
initial developer documentation
descriptions for all functions and classes used by the openssh module
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9d3e307..87f07ff 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# Copyright (c) 2012-2014 Kaarle Ritvanen
+# Copyright (c) 2012-2015 Kaarle Ritvanen
# See LICENSE file for license details
ROOT_DIR := /
@@ -9,9 +9,16 @@ luadir := usr/share/lua/$(LUA_VERSION)/aconf
resdir := usr/share/aconf
augdir := $(resdir)/augeas
webdir := $(resdir)/web
+docdir := usr/share/doc/aconf
starter := usr/sbin/aconfd
-all: install
+files := $(starter)
+
+
+all: doc/index.html
+
+doc/%: aconf/model/config.ld $(shell find aconf/model -name '*.lua')
+ ldoc -f markdown -M -p aconf aconf/model
define _copy =
install -d $$(dir $$@)
@@ -50,6 +57,9 @@ $(eval $(call link,config,$(confdir)))
$(eval $(call copy,config,$(confdir),audit.json,600))
$(eval $(call copy,config,$(confdir),auth.json,600))
+$(eval $(call copy,doc,$(docdir),index.html))
+$(eval $(call copy,doc,$(docdir),ldoc.css))
+
$(eval $(call copy,.,$(resdir),LICENSE))
$(ROOT_DIR)/$(starter): run-server.sh
@@ -63,6 +73,6 @@ $(eval $(call copy,web,$(webdir),client.xhtml))
$(eval $(call rcopy,web,$(webdir),js))
-install: $(foreach f,$(files),$(ROOT_DIR)/$(f)) $(ROOT_DIR)/$(starter)
+install: $(foreach f,$(files),$(ROOT_DIR)/$(f))
.PHONY: all install