diff options
author | culler <culler> | 2020-10-20 04:33:48 (GMT) |
---|---|---|
committer | culler <culler> | 2020-10-20 04:33:48 (GMT) |
commit | 0df4224575b6a68df0c2c85d97d30c1c9f4317cf (patch) | |
tree | 8cda337040ea3596dc24b2a60d7f03879f4d4b5f /macosx/GNUmakefile | |
parent | 479ffca988d6556e568f4fb393a2ced2e93ad8ad (diff) | |
parent | 688d1318a11f09dd8b0300bf67ac783abe1b85d4 (diff) | |
download | tk-0df4224575b6a68df0c2c85d97d30c1c9f4317cf.zip tk-0df4224575b6a68df0c2c85d97d30c1c9f4317cf.tar.gz tk-0df4224575b6a68df0c2c85d97d30c1c9f4317cf.tar.bz2 |
Merge 8.6
Diffstat (limited to 'macosx/GNUmakefile')
-rw-r--r-- | macosx/GNUmakefile | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/macosx/GNUmakefile b/macosx/GNUmakefile index e753c29..243d33a 100644 --- a/macosx/GNUmakefile +++ b/macosx/GNUmakefile @@ -211,9 +211,15 @@ install-${PROJECT}: build-${PROJECT} ifeq (${EMBEDDED_BUILD}_${INSTALL_ROOT},1_) @echo "Cannot install-embedded with empty INSTALL_ROOT !" && false endif +ifeq (${SUBFRAMEWORK}_${DYLIB_INSTALL_DIR},1_) + @echo "Cannot install subframework with empty DYLIB_INSTALL_DIR !" && false +endif ifeq (${EMBEDDED_BUILD},1) @rm -rf "${INSTALL_ROOT}/${LIBDIR}/Tk.framework" endif +ifeq (${SUBFRAMEWORK},1) + @rm -rf "${INSTALL_ROOT}/Frameworks/Tk.framework" +endif ${DO_MAKE} ifeq (${EMBEDDED_BUILD}_${TK_X11},1_) # workaround bug with 'cp -pRH' on Darwin 6 and earlier @@ -228,8 +234,8 @@ ifeq (${EMBEDDED_BUILD},1) else # install wish symbolic link @ln -fs ${WISH} "${INSTALL_ROOT}${BINDIR}/${wish}" -endif -endif +endif # embedded +endif # install ifeq (${BUILD_STYLE}_${EMBEDDED_BUILD},Development_) # keep copy of debug library around, so that # Deployment build can be installed on top @@ -237,8 +243,9 @@ ifeq (${BUILD_STYLE}_${EMBEDDED_BUILD},Development_) # the debug library @cd "${INSTALL_ROOT}${LIBDIR}/${PRODUCT_NAME}.framework/Versions/${VERSION}" && \ ln -f "${PRODUCT_NAME}" "${PRODUCT_NAME}_debug" -endif +endif # Development, not embedded ifeq (${TK_X11},) +ifeq (${SUBFRAMEWORK},) ifeq (${EMBEDDED_BUILD},) # install Wish.app link in APPLICATION_INSTALL_PATH and setup 'Wish Shell' compatibility links @cd "${TOP_DIR}" && if [ -n "${APP_DIR}" ]; then mkdir -p "./${APP_DIR}" && rm -rf "./${APP_DIR}/Wish.app" && \ @@ -272,9 +279,15 @@ else fix_install_name MacOS/Wish Tcl && fix_install_name MacOS/Wish Tk ifeq (${INSTALL_BUILD},1) @cd "${TOP_DIR}" && rm -rf "./${FMWK_DIR}"/T{cl,k}.framework && rmdir -p "./${FMWK_DIR}" 2>&- || true -endif -endif -endif +endif # install +endif # embedded +else +# Clean up the destination directory if this is a subframework + @rm -rf ${INSTALL_ROOT}/Frameworks + @mv "${INSTALL_ROOT}/Library/Frameworks" "${INSTALL_ROOT}" + @rm -rf ${INSTALL_ROOT}/Library +endif # not subframework +endif # not X11 clean-${PROJECT}: %-${PROJECT}: ${DO_MAKE} |