Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
968c9f9b
Commit
968c9f9b
authored
Apr 26, 2018
by
Lorenz Huedepohl
Browse files
Accelerate the dependency generation by not using files
parent
935012ed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fdep/fortran_dependencies.mk
View file @
968c9f9b
...
...
@@ -96,19 +96,10 @@ ifneq ($(call is_clean),1)
include
$(_f90_depfile)
endif
# $1 string
# $2 file
define
append_to
$(_f90_only_verbose)echo
'$1'
>>
$2
endef
# $1 program
define
program_dependencies
$(_f90_only_verbose)echo
-n
>
.$p.dep.args
$(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))
$(_f90_only_verbose)$(top_srcdir)/fdep/fortran_dependencies.pl
$p
<
.$p.dep.args
>>
$@
||
{
rm
$@;
exit
1;
}
$(_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);
)
}
|
\
$(top_srcdir)/fdep/fortran_dependencies.pl
$p
>>
$@
||
{
rm
$@;
exit
1;
}
endef
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment