summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-07-04 05:26:13 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-07-04 05:26:13 (GMT)
commit0030112958d14b4c9885979d0bc1d7b782e7741f (patch)
treee0f48a38d0a5d89e18f13b2672610be2dd3cefb9 /Makefile
parentf82fe5859a567fe5ce6457a96a62092d8f3573e3 (diff)
downloadmxe-0030112958d14b4c9885979d0bc1d7b782e7741f.zip
mxe-0030112958d14b4c9885979d0bc1d7b782e7741f.tar.gz
mxe-0030112958d14b4c9885979d0bc1d7b782e7741f.tar.bz2
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 cd45f8c..82e0e58 100644
--- a/Makefile
+++ b/Makefile
@@ -508,6 +508,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