mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:43:08 +02:00
don't force the install->compile, compile->prepare dependencies in subdir.mk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8202 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7a209707c3
commit
69ac130ada
@ -23,8 +23,6 @@ $(call warn,$(1),$(2),$(3) $(4))
|
|||||||
$(4)
|
$(4)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
dep/compile=$(1)/prepare
|
|
||||||
dep/install=$(1)/compile
|
|
||||||
SUBTARGETS:=clean download prepare compile install update refresh prereq
|
SUBTARGETS:=clean download prepare compile install update refresh prereq
|
||||||
|
|
||||||
# Parameters: <subdir>
|
# Parameters: <subdir>
|
||||||
@ -33,7 +31,7 @@ define subdir
|
|||||||
$(foreach bd,$($(1)/builddirs),
|
$(foreach bd,$($(1)/builddirs),
|
||||||
$(call warn,$(1),d,BD $(1)/$(bd))
|
$(call warn,$(1),d,BD $(1)/$(bd))
|
||||||
$(foreach target,$(SUBTARGETS),
|
$(foreach target,$(SUBTARGETS),
|
||||||
$(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(call dep/$(target),$(1)/$(bd)) $($(1)/$(bd)/$(target)) $($(1)//$(target)))
|
$(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd)))
|
||||||
@$$(MAKE) -j1 -C $(1)/$(bd) $(target)
|
@$$(MAKE) -j1 -C $(1)/$(bd) $(target)
|
||||||
|
|
||||||
# legacy targets
|
# legacy targets
|
||||||
|
@ -23,6 +23,9 @@ $(STAGING_DIR)/include-host/.done:
|
|||||||
|
|
||||||
# prerequisites for the individual targets
|
# prerequisites for the individual targets
|
||||||
$(curdir)/ := .config
|
$(curdir)/ := .config
|
||||||
$(curdir)//prepare := $(STAGING_DIR)/include-host/.done
|
$(curdir)//prepare = $(STAGING_DIR)/include-host/.done
|
||||||
|
$(curdir)//compile = $(1)/prepare
|
||||||
|
$(curdir)//install = $(1)/compile
|
||||||
|
|
||||||
$(eval $(call stampfile,$(curdir),tools))
|
$(eval $(call stampfile,$(curdir),tools))
|
||||||
$(eval $(call subdir,$(curdir)))
|
$(eval $(call subdir,$(curdir)))
|
||||||
|
Loading…
Reference in New Issue
Block a user