diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-07-10 20:55:53 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-07-10 20:55:53 +0000 |
commit | a6a5c89fa7b5406bbc0ad19f026fa29eae7a286e (patch) | |
tree | 05ff0c9013382e9eb175c3b71b70bea3346f0c72 /Makefile | |
parent | 5b636c0e2e37264ee7bcc0ddce78e591c1176101 (diff) |
* 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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |