summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-15 20:51:12 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-07-15 20:51:12 +0000
commit6aa852bfcc456827bf81a2feb6eba4639ea94e23 (patch)
treeca844d7596dd3aabc9375e212d131f1e825da0ae /Makefile
parenta3ecd5494f037803254f689c8012e79c6c88b117 (diff)
add manpages for zaptel utilities (bug #4715)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@695 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 274ce38..776e9a0 100755
--- a/Makefile
+++ b/Makefile
@@ -116,7 +116,7 @@ PRIMARY=torisa
#PRIMARY=wcfxo
PWD:=$(shell pwd)
-all: $(BUILDVER) $(LIBTONEZONE_SO)
+all: $(BUILDVER) $(LIBTONEZONE_SO) manpages
linux24: $(MODULESO) $(BINS)
@@ -295,6 +295,23 @@ else # DYNFS
@echo "**** If you are running udev, read README.udev"
endif
+manpages: doc/ztcfg.8.gz doc/ztmonitor.8.gz doc/zttool.8.gz
+
+doc/ztcfg.8.gz: doc/ztcfg.sgml
+ rm -f doc/ztcfg.8.gz
+ docbook2man -o doc doc/ztcfg.sgml
+ gzip doc/ztcfg.8
+
+doc/zttool.8.gz: doc/zttool.sgml
+ rm -f doc/zttool.8.gz
+ docbook2man -o doc doc/zttool.sgml
+ gzip doc/zttool.8
+
+doc/ztmonitor.8.gz: doc/ztmonitor.sgml
+ rm -f doc/ztmonitor.8.gz
+ docbook2man -o doc doc/ztmonitor.sgml
+ gzip doc/ztmonitor.8
+
install: all devices
install -D -m 755 ztcfg $(INSTALL_PREFIX)/sbin/ztcfg
if [ -f sethdlc-new ]; then \
@@ -329,6 +346,9 @@ install: all devices
install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h
install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h
install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h
+ install -m 644 doc/ztcfg.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
+ install -m 644 doc/ztmonitor.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
+ install -m 644 doc/zttool.8.gz $(INSTALL_PREFIX)/usr/share/man/man8
if [ -f $(MODCONF) ]; then mv -f $(MODCONF) $(MODCONF).bak ; fi
cat $(MODCONF).bak | grep -v "alias char-major-250" | \
grep -v "post-install torisa /sbin/ztcfg" | \