From a6a5c89fa7b5406bbc0ad19f026fa29eae7a286e Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 10 Jul 2008 20:55:53 +0000 Subject: * Include init.conf in the README as well. * Initial support for referencing configuration directives from the asciidoc-ed README. * Ignore files generated while making documentation. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4602 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 19528fb..3f4a021 100644 --- a/Makefile +++ b/Makefile @@ -184,12 +184,13 @@ tonezones.txt: zonedata.c print (($$1 eq "country")? "* $$2\t":"$$2\n");' $< \ >$@ -system.conf.asciidoc: doc/system.conf +%.asciidoc: %.sample perl -n -e \ 'if (/^#($$|\s)(.*)/){ if (!$$in_doc){print "\n"}; $$in_doc=1; print "$$2\n" } else { if ($$in_doc){print "\n"}; $$in_doc=0; print " $$_" }' \ - $< >$@ + $< \ + | perl -p -e 'if (/^ #?(\w+)=/ && ! exists $$cfgs{$$1}){my $$cfg = $$1; $$cfgs{$$cfg} = 1; s/^/\n[[cfg_$$cfg]]\n/}' >$@ -README.html: README system.conf.asciidoc tonezones.txt +README.html: README system.conf.asciidoc init.conf.asciidoc tonezones.txt $(ASCIIDOC) -n -a toc -a toclevels=3 $< kernel/xpp/README.Astribank.html: kernel/xpp/README.Astribank @@ -227,7 +228,7 @@ ifneq (,$(BINS)) install -m 644 $(MAN_PAGES) $(DESTDIR)$(MAN_DIR)/ endif ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE))) - $(INSTALL) -D -m 644 doc/system.conf $(DESTDIR)$(CONFIG_FILE) + $(INSTALL) -D -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE) endif install-libs: libs @@ -316,7 +317,7 @@ clean: rm -f core rm -f dahdi_cfg-shared fxstest rm -rf $(GROFF_HTML) - rm -rf README.html xpp/README.Astribank.html system.conf.asciidoc + rm -rf README.html xpp/README.Astribank.html *.asciidoc tonezones.txt distclean: dist-clean -- cgit v1.2.3