windows - Gnu Make target out of expanded list of files -


i grouping type of files like: https://www.gnu.org/software/make/manual/html_node/wildcard-function.html

about 100 sub directories...

cc_files_to_build += $(wildcard $(src_dir)/01-application/*.c)   asm_files_to_build += $(wildcard $(project_root)/01-sources/07-target/01-mc9s12g/04-startup/01-cpl_lib/*.s) 

when dump example cc_files_to_build per rule, nice lists of files names:

e:\1983_1\02-safety>make dump-cc_files_to_build make[1]: entering directory `e:/1983_1/02-safety/01-application' e:\1983_1\02-safety\01-application/01-sources//01-application/01-init/app_init.c e:\1983_1\02-safety\01-application/01-sources//01-applicat ion/02-main/app.c e:\1983_1\02-safety\01-application/01-sources//01-application/03-fm/fm.c e:\1983_1\02-safety\01-application/01-sources//01 -application/05-smcm/smcm.c e:\1983_1\02-safety\01-application/01-sources//01-application/06-lim/lim.c  e:\1983_1\02-safety\01-application/0  1-sources//02-services/01-canm/can_user.c e:\1983_1\02-safety\01-application/01-sources//02-services/01-canm/v_par.c e:\1983_1\02-safety\01-  application/01-sources//02-services/01-canm/vstdlib.c e:\1983_1\02-safety\01-application/01-sources//02-services/01-canm/sip_vers.c ... ......make[1]: leaving directory `e:/1983_1/02-safety/01-application' 

i build new lists out these normal subst corresponding lists of depend , obj files, like:

cc_to_mak_build_list = $(call unique, $(foreach src,$(cc_files_to_build ), $(dep_path)\$(basename $(notdir$(subst,\,/,$(src)))).$(mak_file_suffix))) 

i want use these depend , obj lists targets in rules like:

$(filter-out $(gcc_ignore_list), $(cc_to_mak_build_list)) :$(dep_output_path)\\%.$(mak_file_suffix):$(depend_force) |  $(depend_cpp_options_file) $(directories_to_create) $(separator) [depend]   $(notdir $@) $(cpp) @$(depend_cpp_options_file) -undef -mm -mf "$@" -mt "$(call depend_get_target,$@)" -mt "$@" "$(getsourcefile)"  

then target depend:

depend: $(lib_to_mak_build_list) $(cc_to_mak_build_list) | $(depend_cpp_options_file) $(directories_to_create)  

and output:

e:\1983_1\02-safety\01-application>make depend * [build]       depend.cpp_options e:\1983_1\02-safety\01-application> 

apparently nothing done although dependcies files(*.mak) not there. no force or phony solve me.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

Augmenting Latin Hypercube Points in MATLAB -