summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-09-18 07:35:15 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-09-18 07:35:15 (GMT)
commit8de88aa4ddebb09a0364f4c5da95cc58265e3888 (patch)
tree5dd25270c898e4786ed8bcb49174a8c60c6af0bd /Makefile
parentf57ac564e9e6a5afcb1410c5fb407d9ef4306046 (diff)
downloadmxe-8de88aa4ddebb09a0364f4c5da95cc58265e3888.zip
mxe-8de88aa4ddebb09a0364f4c5da95cc58265e3888.tar.gz
mxe-8de88aa4ddebb09a0364f4c5da95cc58265e3888.tar.bz2
Makefile: pass PKG variable to build rules
See here for explanation: http://www.gnu.org/software/make/manual/make.html#Target_002dspecific
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a16e2a3..458077b 100644
--- a/Makefile
+++ b/Makefile
@@ -191,6 +191,7 @@ $(PREFIX)/installed/$(1): $(TOP_DIR)/src/$(1).mk \
@echo '[done] $(1)'
.PHONY: build-only-$(1)
+build-only-$(1): PKG = $(1)
build-only-$(1):
$(if $(value $(1)_BUILD),
rm -rf '$(2)'