summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-03 19:19:06 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-05-03 19:19:06 +0000
commit87a8b2b6d3c55976185b342770006596703bdfd9 (patch)
tree4250eac33fd3502fbfa2045b5c3f46c7db4d0f2c /Makefile
parent16de34fdb971405900757e4b8fa8a29423b1ec1d (diff)
Docuemnt the tonezones we currently have.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4232 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c7444c3..622e980 100644
--- a/Makefile
+++ b/Makefile
@@ -373,12 +373,18 @@ fxsdump: LDLIBS+=-lm
stackcheck: checkstack modules
./checkstack kernel/*.ko kernel/*/*.ko
+
+tonezones.txt: zonedata.c
+ perl -ne 'next unless (/\.(country|description) = *"([^"]*)/); \
+ print (($$1 eq "country")? "* $$2\t":"$$2\n");' $< \
+ >$@
+
zaptel.conf.asciidoc: zaptel.conf.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 " $$_" }' \
$< >$@
-README.html: README zaptel.conf.asciidoc
+README.html: README zaptel.conf.asciidoc tonezones.txt
$(ASCIIDOC) -n -a toc -a toclevels=3 $<
kernel/xpp/README.Astribank.html: kernel/xpp/README.Astribank