summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordas <das>2003-07-19 01:37:13 (GMT)
committerdas <das>2003-07-19 01:37:13 (GMT)
commit9e6286a0cd0ac288032cc89dbcbf92b8e01a7824 (patch)
treed5a7fbbed41d35ec7c7b90350379146bcad2006e /macosx
parenta984a1013cb2c790fcceb4470f3ac7b506ee95dd (diff)
downloadtcl-9e6286a0cd0ac288032cc89dbcbf92b8e01a7824.zip
tcl-9e6286a0cd0ac288032cc89dbcbf92b8e01a7824.tar.gz
tcl-9e6286a0cd0ac288032cc89dbcbf92b8e01a7824.tar.bz2
* macosx/Makefile: added option to allow installing manpages
in addition to default html help.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/macosx/Makefile b/macosx/Makefile
index e2dcf8e..d4a4a6d 100644
--- a/macosx/Makefile
+++ b/macosx/Makefile
@@ -3,7 +3,7 @@
# Makefile to build Tcl on Mac OS X packaged as a Framework
# uses standard unix build system in tcl/unix
#
-# RCS: @(#) $Id: Makefile,v 1.6 2003/07/18 02:02:02 das Exp $
+# RCS: @(#) $Id: Makefile,v 1.7 2003/07/19 01:37:13 das Exp $
#
########################################################################################################
@@ -23,6 +23,10 @@ EXTRA_MAKE_ARGS ?=
INSTALL_PATH ?= /Library/Frameworks
PREFIX ?= /usr
BINDIR ?= ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/man
+
+# set to non-empty value to install manpages in addition to html help:
+INSTALL_MANPAGES ?=
TCL_PACKAGE_PATH ?= "~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl \
~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks \
@@ -116,8 +120,9 @@ ${PROJECT}: install-${PROJECT}
${OBJ_DIR}/Makefile: ${UNIX_DIR}/Makefile.in ${UNIX_DIR}/configure
mkdir -p ${OBJ_DIR} && cd ${OBJ_DIR} && ${UNIX_DIR}/configure \
- --prefix=${PREFIX} --bindir=${BINDIR} --libdir=${LIBDIR} --includedir=${INCLUDEDIR} \
- --enable-threads --enable-framework ${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS}
+ --prefix=${PREFIX} --bindir=${BINDIR} --libdir=${LIBDIR} \
+ --includedir=${INCLUDEDIR} --mandir=${MANDIR} --enable-threads \
+ --enable-framework ${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS}
cd ${OBJ_DIR} && mkdir -p ${PRODUCT_NAME}.framework && \
ln -fs ../${PRODUCT_NAME} ${PRODUCT_NAME}.framework/${PRODUCT_NAME}
@@ -132,10 +137,10 @@ build-${PROJECT}: ${OBJ_DIR}/Makefile
ln -fs ${OBJ_DIR}/tcltest ${SYMROOT}
clean-${PROJECT}:
- ${MAKE} -C ${OBJ_DIR} clean
+ ${MAKE} -C ${OBJ_DIR} clean ${EXTRA_MAKE_ARGS}
distclean-${PROJECT}:
- ${MAKE} -C ${OBJ_DIR} distclean
+ ${MAKE} -C ${OBJ_DIR} distclean ${EXTRA_MAKE_ARGS}
rm -rf ${OBJ_DIR} ${PRODUCT_NAME}.framework tclsh${PRODUCT_VERSION} tcltest
install-${PROJECT}: build-${PROJECT}
@@ -173,9 +178,13 @@ else
mkdir -p ${INSTALL_ROOT}/usr/bin && \
ln -fs ${TCLSH} ${INSTALL_ROOT}/${BINDIR}/tclsh
ifeq (${BUILD_STYLE},Deployment)
+ifneq (${INSTALL_MANPAGES},)
+# install manpages
+ ${MAKE} -C ${OBJ_DIR} install-doc ${MAKE_ARGS_V} ${MAKE_ARGS} ${EXTRA_MAKE_ARGS}
+endif
# build html documentation
export DYLD_FRAMEWORK_PATH=${SYMROOT} && \
- ${MAKE} -C ${OBJ_DIR} html-tcl \
+ ${MAKE} -C ${OBJ_DIR} html-tcl ${MAKE_ARGS_V} ${MAKE_ARGS} ${EXTRA_MAKE_ARGS} \
DISTDIR=${INSTALL_ROOT}${DOCDIR} TCL_EXE=${TCL_EXE} && \
cd ${INSTALL_ROOT}${DOCDIR} && ln -fs contents.htm html/${PRODUCT_NAME}TOC.html && \
rm -fr "${PRODUCT_NAME}" && mv -f html "${PRODUCT_NAME}"