changeset 2742:9276054dea28

Makefile: pass PKG variable to build rules See here for explanation: http://www.gnu.org/software/make/manual/make.html#Target_002dspecific
author Tony Theodore <tonyt@logyst.com>
date Tue, 18 Sep 2012 17:35:15 +1000
parents ab030b2952d7
children abf2a94d035f
files Makefile
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Tue Sep 18 03:07:58 2012 +1000
+++ b/Makefile	Tue Sep 18 17:35:15 2012 +1000
@@ -191,6 +191,7 @@
 	@echo '[done]     $(1)'
 
 .PHONY: build-only-$(1)
+build-only-$(1): PKG = $(1)
 build-only-$(1):
 	$(if $(value $(1)_BUILD),
 	    rm -rf   '$(2)'