Commit 54cb5a14 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl Committed by Andreas Marek

Accelerate the dependency generation by not using files

parent 2165b222
...@@ -96,19 +96,10 @@ ifneq ($(call is_clean),1) ...@@ -96,19 +96,10 @@ ifneq ($(call is_clean),1)
include $(_f90_depfile) include $(_f90_depfile)
endif endif
# $1 string
# $2 file
define append_to
$(_f90_only_verbose)echo '$1' >> $2
endef
# $1 program # $1 program
define program_dependencies define program_dependencies
$(_f90_only_verbose)rm -f .$p.dep.args $(_f90_only_verbose){ $(foreach argument,$(_$p_use_mods) $(_$p_def_mods) $(foreach l,$(call recursive_lib_deps,$p),$(_$l_use_mods) $(_$l_def_mods)),echo $(argument); ) } | \
$(foreach argument,$(_$p_use_mods) $(_$p_def_mods) $(foreach l,$(call recursive_lib_deps,$p),$(_$l_use_mods) $(_$l_def_mods)),$(call append_to,$(argument),.$p.dep.args)) $(top_srcdir)/fdep/fortran_dependencies.pl $p >> $@ || { rm $@; exit 1; }
$(_f90_only_verbose)$(top_srcdir)/fdep/fortran_dependencies.pl $p < .$p.dep.args >> $@ || { rm $@; exit 1; }
$(_f90_only_verbose)rm -f .$p.dep.args
endef endef
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment