summaryrefslogtreecommitdiffstats
path: root/macosx/GNUmakefile
diff options
context:
space:
mode:
authorculler <culler>2020-10-21 18:02:31 (GMT)
committerculler <culler>2020-10-21 18:02:31 (GMT)
commitfb10e693b2a8b1d3c30b2de7c9899f0d7a7081a9 (patch)
tree28089df61e1ff128a2c732fc43f72f05d88c168f /macosx/GNUmakefile
parentfd9662ee1c86d86ba0a92a616b5821fd389551e1 (diff)
downloadtcl-fb10e693b2a8b1d3c30b2de7c9899f0d7a7081a9.zip
tcl-fb10e693b2a8b1d3c30b2de7c9899f0d7a7081a9.tar.gz
tcl-fb10e693b2a8b1d3c30b2de7c9899f0d7a7081a9.tar.bz2
When building a subframework for macOS use a build directory in the staging directory.
Diffstat (limited to 'macosx/GNUmakefile')
-rw-r--r--macosx/GNUmakefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/macosx/GNUmakefile b/macosx/GNUmakefile
index e55b661..cdeb099 100644
--- a/macosx/GNUmakefile
+++ b/macosx/GNUmakefile
@@ -32,6 +32,18 @@ MANDIR ?= ${PREFIX}/man
# set to non-empty value to install manpages in addition to html help:
INSTALL_MANPAGES ?=
+# Checks and overrides for subframework builds
+ifeq (${SUBFRAMEWORK},1)
+ifeq (${DYLIB_INSTALL_DIR},)
+ @echo "Cannot install subframework with empty DYLIB_INSTALL_DIR !" && false
+endif
+ifeq (${DESTDIR},)
+ @echo "Cannot install subframework with empty DESTDIR !" && false
+endif
+override BUILD_DIR = ${DESTDIR}/build
+override INSTALL_PATH = /Frameworks
+endif
+
#-------------------------------------------------------------------------------------------------------
# meta targets
@@ -150,9 +162,6 @@ 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}/Tcl.framework"
endif