Makefile: pass PKG variable to build rules

See here for explanation:

http://www.gnu.org/software/make/manual/make.html#Target_002dspecific
pull/81/head
Tony Theodore 12 years ago
parent f57ac564e9
commit 8de88aa4dd

@ -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)'

Loading…
Cancel
Save