comparison 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
comparison
equal deleted inserted replaced
2741:ab030b2952d7 2742:9276054dea28
189 exit 1; \ 189 exit 1; \
190 fi 190 fi
191 @echo '[done] $(1)' 191 @echo '[done] $(1)'
192 192
193 .PHONY: build-only-$(1) 193 .PHONY: build-only-$(1)
194 build-only-$(1): PKG = $(1)
194 build-only-$(1): 195 build-only-$(1):
195 $(if $(value $(1)_BUILD), 196 $(if $(value $(1)_BUILD),
196 rm -rf '$(2)' 197 rm -rf '$(2)'
197 mkdir -p '$(2)' 198 mkdir -p '$(2)'
198 cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1)) 199 cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1))