summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-09 09:04:52 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-09 09:04:52 +0000
commit9c9ff2fd5d1827d02fe01c8dab56f65d9d97a4fc (patch)
treeed0e896b768c355606dfee4701b9355c2662883e /Makefile
parent3b3d8f7b1186f672e16cd7e4ded2f405ec43cb1c (diff)
Integrating sample / reference configuration file into the reference
documentation. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3968 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 84b6566..f7c5965 100644
--- a/Makefile
+++ b/Makefile
@@ -365,7 +365,12 @@ fxsdump: LDFLAGS+=-lm
stackcheck: checkstack all
./checkstack *.ko */*.ko
-README.html: README
+zaptel.conf.asciidoc: zaptel.conf.sample
+ perl -n -e \
+ 'if (/^#($$|\s)(.*)/){ if (!$$in_doc){print "\n"}; $$in_doc=1; print "$$2\n" } else { $$in_doc=0; print " $$_" }' \
+ $< >$@
+
+README.html: README zaptel.conf.asciidoc
$(ASCIIDOC) -n -a toc $<
xpp/README.Astribank.html: xpp/README.Astribank
@@ -563,7 +568,7 @@ clean:
rm -f ztcfg-shared fxstest
rm -rf misdn*
rm -rf mISDNuser*
- rm -rf README.html xpp/README.Astribank.html
+ rm -rf README.html xpp/README.Astribank.html zaptel.conf.asciidoc
.EXPORT_ALL_VARIABLES: