summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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" | \