summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
diff options
context:
space:
mode:
authorrmax <rmax>2004-11-18 00:43:18 (GMT)
committerrmax <rmax>2004-11-18 00:43:18 (GMT)
commit1b1920d3460f86d0c8c303446d121a41ddb8d8cf (patch)
treeeb3d98f33e7546cdfea54fec2d52cde3b5d61de5 /unix/Makefile.in
parentbe0dcd9c9fe40b3e3b42c40165565551ba19e8b4 (diff)
downloadtk-1b1920d3460f86d0c8c303446d121a41ddb8d8cf.zip
tk-1b1920d3460f86d0c8c303446d121a41ddb8d8cf.tar.gz
tk-1b1920d3460f86d0c8c303446d121a41ddb8d8cf.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: 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 0a759a6..cff43c0 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.96 2004/08/19 17:59:18 dgp Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.97 2004/11/18 00:43:19 rmax Exp $
# Current Tk version; used in various names.
@@ -281,9 +281,9 @@ TOOL_DIR = @TCL_SRC_DIR@/tools
# either.
#----------------------------------------------------------------
-# 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@
CC = @CC@
@@ -644,8 +644,8 @@ install-demos:
done;
install-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 \
@@ -656,36 +656,20 @@ install-doc:
else true; \
fi; \
done;
- @echo "Installing top-level (.1) docs";
- @cd $(SRC_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 $(SRC_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 top-level (.3) docs";
- @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MAN3_INSTALL_DIR)
- @echo "Installing command (.n) docs";
- @cd $(SRC_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:
@@ -1098,11 +1082,6 @@ rpm: all /bin/rpm
mv RPMS/i386/*.rpm .
rm -rf RPMS THIS.TK.SPEC
-mklinks:
- $(TCL_EXE) $(TCLDIR)/unix/mkLinks.tcl \
- $(UNIX_DIR)/../doc/*.[13n] > $(UNIX_DIR)/mkLinks
- chmod +x $(UNIX_DIR)/mkLinks
-
#
# Target to create a proper Tk distribution from information in the
# master source directory. DISTDIR must be defined to indicate where
@@ -1117,7 +1096,7 @@ TCLDIR = @TCL_SRC_DIR@
$(UNIX_DIR)/configure: $(UNIX_DIR)/configure.in
autoconf $(UNIX_DIR)/configure.in > $(UNIX_DIR)/configure
-dist: $(UNIX_DIR)/configure mklinks
+dist: $(UNIX_DIR)/configure
rm -rf $(DISTDIR)
mkdir -p $(DISTDIR)
mkdir $(DISTDIR)/unix
@@ -1127,7 +1106,7 @@ dist: $(UNIX_DIR)/configure mklinks
cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in $(UNIX_DIR)/tk.spec \
$(UNIX_DIR)/aclocal.m4 $(UNIX_DIR)/tcl.m4 \
$(UNIX_DIR)/tkConfig.sh.in $(TCLDIR)/unix/install-sh \
- $(UNIX_DIR)/README $(UNIX_DIR)/mkLinks $(DISTDIR)/unix
+ $(UNIX_DIR)/README $(UNIX_DIR)/installManPage $(DISTDIR)/unix
chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in
chmod +x $(DISTDIR)/unix/install-sh
mkdir $(DISTDIR)/bitmaps