Skip to content

Commit 3894e2a

Browse files
committed
build: Fix depends build system when working with subtargets
1 parent 774a4f5 commit 3894e2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

depends/funcs.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $(1)_extracted=$$($(1)_extract_dir)/.stamp_extracted
7575
$(1)_preprocessed=$$($(1)_extract_dir)/.stamp_preprocessed
7676
$(1)_cleaned=$$($(1)_extract_dir)/.stamp_cleaned
7777
$(1)_built=$$($(1)_build_dir)/.stamp_built
78-
$(1)_configured=$$($(1)_build_dir)/.stamp_configured
78+
$(1)_configured=$(host_prefix)/.$(1)_stamp_configured
7979
$(1)_staged=$$($(1)_staging_dir)/.stamp_staged
8080
$(1)_postprocessed=$$($(1)_staging_prefix_dir)/.stamp_postprocessed
8181
$(1)_download_path_fixed=$(subst :,\:,$$($(1)_download_path))
@@ -208,8 +208,8 @@ $($(1)_preprocessed): | $($(1)_extracted)
208208
$($(1)_configured): | $($(1)_dependencies) $($(1)_preprocessed)
209209
$(AT)echo Configuring $(1)...
210210
$(AT)rm -rf $(host_prefix); mkdir -p $(host_prefix)/lib; cd $(host_prefix); $(foreach package,$($(1)_all_dependencies), tar --no-same-owner -xf $($(package)_cached); )
211-
$(AT)mkdir -p $$(@D)
212-
$(AT)+cd $$(@D); $($(1)_config_env) $(call $(1)_config_cmds, $(1))
211+
$(AT)mkdir -p $$($(1)_build_dir)
212+
$(AT)+cd $$($(1)_build_dir); $($(1)_config_env) $(call $(1)_config_cmds, $(1))
213213
$(AT)touch $$@
214214
$($(1)_built): | $($(1)_configured)
215215
$(AT)echo Building $(1)...

0 commit comments

Comments
 (0)