summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
diff options
context:
space:
mode:
authorrmax <rmax>2004-11-18 00:45:02 (GMT)
committerrmax <rmax>2004-11-18 00:45:02 (GMT)
commit9cfc282fc75927f7eb0e2c6cae0219a2cd1fc753 (patch)
tree0155552db3eb9204b58d8fc2b32a704fb6f191ba /unix/Makefile.in
parent0014094bc624316bcdfbd58b1187592019384026 (diff)
downloadtcl-9cfc282fc75927f7eb0e2c6cae0219a2cd1fc753.zip
tcl-9cfc282fc75927f7eb0e2c6cae0219a2cd1fc753.tar.gz
tcl-9cfc282fc75927f7eb0e2c6cae0219a2cd1fc753.tar.bz2
2004-11-18 Reinhard Max <max@suse.de>
* unix/tcl.m4 (SC_CONFIG_MANPAGES): Applied an improved version of * unix/configure.in: patch #996085, that introduces * unix/Makefile.in: --enable-man-suffix. * unix/installManPage: added * unix/mkLinks.tcl: removed * unix/mkLinks: removed
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r--unix/Makefile.in65
1 files changed, 22 insertions, 43 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 746d49b..6d6e181 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.154 2004/11/12 20:27:29 das Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.155 2004/11/18 00:45:03 rmax Exp $
VERSION = @TCL_VERSION@
MAJOR_VERSION = @TCL_MAJOR_VERSION@
@@ -254,9 +254,9 @@ TCL_BUILDTIME_LIBRARY = @TCL_SRC_DIR@/library
CC = @CC@
#CC = purify -best-effort @CC@ -DPURIFY
-# Flags to be passed to mkLinks to control whether the manpages
-# should be compressed and linked with softlinks
-MKLINKS_FLAGS = @MKLINKS_FLAGS@
+# Flags to be passed to installManPage to control how the manpages
+# should be installed (symlinks, compression, package name suffix).
+MAN_FLAGS = @MAN_FLAGS@
#----------------------------------------------------------------
# The information below is usually usable as is. The configure
@@ -700,8 +700,8 @@ install-msgs:
$(TOP_DIR)/library/msgs $(SCRIPT_INSTALL_DIR)/msgs
install-doc: doc
- @if test ! -x $(UNIX_DIR)/mkLinks; then \
- chmod +x $(UNIX_DIR)/mkLinks; \
+ @if test ! -x $(UNIX_DIR)/installManPage; then \
+ chmod +x $(UNIX_DIR)/installManPage; \
fi
@for i in $(MAN_INSTALL_DIR) $(MAN1_INSTALL_DIR) $(MAN3_INSTALL_DIR) $(MANN_INSTALL_DIR) ; \
do \
@@ -712,36 +712,20 @@ install-doc: doc
else true; \
fi; \
done;
- @echo "Installing top-level (.1) docs";
- @cd $(TOP_DIR)/doc; for i in *.1; \
- do \
- rm -f $(MAN1_INSTALL_DIR)/$$i; \
- sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
- $$i > $(MAN1_INSTALL_DIR)/$$i; \
- chmod 444 $(MAN1_INSTALL_DIR)/$$i; \
- done;
- @echo "Cross-linking top-level (.1) docs";
- @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MAN1_INSTALL_DIR)
- @echo "Installing C API (.3) docs";
- @cd $(TOP_DIR)/doc; for i in *.3; \
- do \
- rm -f $(MAN3_INSTALL_DIR)/$$i; \
- sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
- $$i > $(MAN3_INSTALL_DIR)/$$i; \
- chmod 444 $(MAN3_INSTALL_DIR)/$$i; \
- done;
- @echo "Cross-linking C API (.3) docs";
- @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MAN3_INSTALL_DIR)
- @echo "Installing command (.n) docs";
- @cd $(TOP_DIR)/doc; for i in *.n; \
- do \
- rm -f $(MANN_INSTALL_DIR)/$$i; \
- sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
- $$i > $(MANN_INSTALL_DIR)/$$i; \
- chmod 444 $(MANN_INSTALL_DIR)/$$i; \
- done;
- @echo "Cross-linking command (.n) docs";
- @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MANN_INSTALL_DIR)
+ @echo "Installing and cross-linking top-level (.1) docs";
+ @cd $(TOP_DIR)/doc; for i in *.1; do \
+ $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN1_INSTALL_DIR); \
+ done
+
+ @echo "Installing and cross-linking C API (.3) docs";
+ @cd $(TOP_DIR)/doc; for i in *.3; do \
+ $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN3_INSTALL_DIR); \
+ done
+
+ @echo "Installing and cross-linking command (.n) docs";
+ @cd $(TOP_DIR)/doc; for i in *.n; do \
+ $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \
+ done
# Optional target to install private headers
install-private-headers: libraries
@@ -1281,11 +1265,6 @@ rpm: all /bin/rpm
mv RPMS/i386/*.rpm .
rm -rf RPMS THIS.TCL.SPEC
-mklinks:
- $(TCL_EXE) $(UNIX_DIR)/mkLinks.tcl \
- $(UNIX_DIR)/../doc/*.[13n] > $(UNIX_DIR)/mkLinks
- chmod +x $(UNIX_DIR)/mkLinks
-
#
# Target to create a proper Tcl distribution from information in the
# master source directory. DISTDIR must be defined to indicate where
@@ -1301,7 +1280,7 @@ $(UNIX_DIR)/configure: $(UNIX_DIR)/configure.in $(UNIX_DIR)/tcl.m4
$(UNIX_DIR)/tclConfig.h.in: $(UNIX_DIR)/configure.in $(UNIX_DIR)/tcl.m4
cd $(UNIX_DIR); autoheader
-dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tclConfig.h.in mklinks
+dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tclConfig.h.in
rm -rf $(DISTDIR)
mkdir -p $(DISTDIR)/unix
cp -p $(UNIX_DIR)/*.c $(UNIX_DIR)/*.h $(DISTDIR)/unix
@@ -1311,7 +1290,7 @@ dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tclConfig.h.in mklinks
$(UNIX_DIR)/tcl.m4 $(UNIX_DIR)/aclocal.m4 \
$(UNIX_DIR)/tclConfig.sh.in $(UNIX_DIR)/install-sh \
$(UNIX_DIR)/README $(UNIX_DIR)/ldAix $(UNIX_DIR)/tcl.spec \
- $(UNIX_DIR)/tclConfig.h.in $(UNIX_DIR)/mkLinks \
+ $(UNIX_DIR)/installManPage $(UNIX_DIR)/tclConfig.h.in \
$(DISTDIR)/unix
chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
chmod 775 $(DISTDIR)/unix/ldAix