diff Makefile @ 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 38054572b13f
children daff1938f6b1
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)'