summaryrefslogtreecommitdiffstats
path: root/macosx/Makefile
diff options
context:
space:
mode:
authordas <das>2003-09-25 05:34:18 (GMT)
committerdas <das>2003-09-25 05:34:18 (GMT)
commit20105d8fee7ad158025085192b3a3b57340b9135 (patch)
treeb2bd24e50a90428ab249f2537b64f83a52078a14 /macosx/Makefile
parentb4ecd54d6899c7a925bc9ba36b5b8079074a3594 (diff)
downloadtcl-20105d8fee7ad158025085192b3a3b57340b9135.zip
tcl-20105d8fee7ad158025085192b3a3b57340b9135.tar.gz
tcl-20105d8fee7ad158025085192b3a3b57340b9135.tar.bz2
* macosx/Makefile: ensure SYMROOT exists if OBJROOT is overridden
on command line. Replaced explict use of /usr/bin by ${BINDIR}.
Diffstat (limited to 'macosx/Makefile')
-rw-r--r--macosx/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/macosx/Makefile b/macosx/Makefile
index 781a19d..5be4a84 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.5.2.3 2003/07/19 01:35:01 das Exp $
+# RCS: @(#) $Id: Makefile,v 1.5.2.4 2003/09/25 05:34:18 das Exp $
#
########################################################################################################
@@ -131,7 +131,7 @@ build-${PROJECT}: ${OBJ_DIR}/Makefile
# symolic link hackery to trick
# 'make install INSTALL_ROOT=${OBJ_DIR}'
# into building Tcl.framework and tclsh in ${SYMROOT}
- cd ${OBJ_DIR}; mkdir -p $(dir ./${INSTALL_PATH}) $(dir ./${BINDIR}); \
+ cd ${OBJ_DIR}; mkdir -p $(dir ./${INSTALL_PATH}) $(dir ./${BINDIR}) ${SYMROOT}; \
rm -f ./${INSTALL_PATH}; ln -fs ${SYMROOT} ./${INSTALL_PATH}; \
rm -f ./${BINDIR}; ln -fs ${SYMROOT} ./${BINDIR}; \
ln -fs ${OBJ_DIR}/tcltest ${SYMROOT}
@@ -164,8 +164,8 @@ endif
ifeq (${INSTALL_BUILD},1)
ifeq (${EMBEDDED_BUILD},1)
# if we are embedding frameworks, don't install tclsh
- rm -f "${INSTALL_ROOT}/${BINDIR}/${TCLSH}"
- -rmdir -p "${INSTALL_ROOT}/${BINDIR}" 2>&-
+ rm -f "${INSTALL_ROOT}${BINDIR}/${TCLSH}"
+ -rmdir -p "${INSTALL_ROOT}${BINDIR}" 2>&-
else
# redo prebinding
cd ${INSTALL_ROOT}; \
@@ -175,8 +175,7 @@ else
if [ -n "$${RM_USRLIB:-}" ]; then rm -f usr/lib; rmdir -p usr 2>&-; fi; \
if [ -n "$${RM_SYSTEM:-}" ]; then rm -f System; fi
# install tclsh symbolic link
- mkdir -p ${INSTALL_ROOT}/usr/bin && \
- ln -fs ${TCLSH} ${INSTALL_ROOT}/${BINDIR}/tclsh
+ ln -fs ${TCLSH} ${INSTALL_ROOT}${BINDIR}/tclsh
ifeq (${BUILD_STYLE},Deployment)
ifneq (${INSTALL_MANPAGES},)
# install manpages