From 3baaf91de453d35b095881478be8d88b3fc2b97a Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 2 Apr 2015 16:34:13 +0300 Subject: initial developer documentation descriptions for all functions and classes used by the openssh module --- Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3