summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-01-21 04:08:26 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-07-11 06:27:22 (GMT)
commit1d75e1f3537e7263fa83255fafe4afb89457a6bb (patch)
treef358298f8a525eb3cfd405bec60c8798a8bd056c /Makefile
parentec9317949398e1294bafbdef7a04844bd91dadc5 (diff)
downloadmxe-1d75e1f3537e7263fa83255fafe4afb89457a6bb.zip
mxe-1d75e1f3537e7263fa83255fafe4afb89457a6bb.tar.gz
mxe-1d75e1f3537e7263fa83255fafe4afb89457a6bb.tar.bz2
Makefile: add SOURCE_DIR and BUILD_DIR variables
* use `*.build_` until all packages are converted see #1159 This commit was amended by Boris Nagaev on Jul 11, 2016.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ab61761..62e257f 100644
--- a/Makefile
+++ b/Makefile
@@ -525,6 +525,8 @@ build-only-$(1)_$(3): TARGET = $(3)
build-only-$(1)_$(3): BUILD_$(if $(findstring shared,$(3)),SHARED,STATIC) = TRUE
build-only-$(1)_$(3): LIB_SUFFIX = $(if $(findstring shared,$(3)),dll,a)
build-only-$(1)_$(3): BITS = $(if $(findstring x86_64,$(3)),64,32)
+build-only-$(1)_$(3): SOURCE_DIR = $(2)/$($(1)_SUBDIR)
+build-only-$(1)_$(3): BUILD_DIR = $(2)/$($(1)_SUBDIR).build_
build-only-$(1)_$(3): CMAKE_RUNRESULT_FILE = $(PREFIX)/share/cmake/modules/TryRunResults.cmake
build-only-$(1)_$(3): CMAKE_TOOLCHAIN_FILE = $(PREFIX)/$(3)/share/cmake/mxe-conf.cmake
build-only-$(1)_$(3): CMAKE_TOOLCHAIN_DIR = $(PREFIX)/$(3)/share/cmake/mxe-conf.d
@@ -543,6 +545,8 @@ build-only-$(1)_$(3):
perl --version 2>&1 | head -3
rm -rf '$(2)'
mkdir -p '$(2)'
+ mkdir -p '$$(SOURCE_DIR)'
+ mkdir -p '$$(BUILD_DIR)'
# disable wine with readonly directory
# see https://github.com/mxe/mxe/issues/841