summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-07-04 07:15:02 (GMT)
committerGitHub <noreply@github.com>2016-07-04 07:15:02 (GMT)
commitb791ffd4e7dd28a7929d7fbe3590a3c921eda4d7 (patch)
treeb624e722e999545407db5460d9521d7da2cf7702 /Makefile
parent2e12efbfea92f3e72253fdfbeab5148a103fa54f (diff)
parent0030112958d14b4c9885979d0bc1d7b782e7741f (diff)
downloadmxe-b791ffd4e7dd28a7929d7fbe3590a3c921eda4d7.zip
mxe-b791ffd4e7dd28a7929d7fbe3590a3c921eda4d7.tar.gz
mxe-b791ffd4e7dd28a7929d7fbe3590a3c921eda4d7.tar.bz2
Merge pull request #1417 from tonytheodore/make-target-specific
Makefile: note use of target-specific variables
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 17f844e..2edab45 100644
--- a/Makefile
+++ b/Makefile
@@ -513,6 +513,9 @@ $(PREFIX)/$(3)/installed/$(1): $(PKG_MAKEFILES) \
.PHONY: build-only-$(1)_$(3)
+# target-specific variables provide an extra level of scoping so that named
+# variables can be used in package build rules:
+# https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
build-only-$(1)_$(3): PKG = $(1)
build-only-$(1)_$(3): TARGET = $(3)
build-only-$(1)_$(3): BUILD_$(if $(findstring shared,$(3)),SHARED,STATIC) = TRUE