Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lorenz Huedepohl
ftimings
Commits
6132d7e3
Commit
6132d7e3
authored
May 22, 2015
by
Lorenz Huedepohl
Browse files
Ignore "module procedure" statements
These tripped the module definition parser
parent
0e28255f
Changes
1
Hide whitespace changes
Inline
Side-by-side
fortran_dependencies.mk
View file @
6132d7e3
...
@@ -49,11 +49,11 @@ endef
...
@@ -49,11 +49,11 @@ endef
define
module_targets
define
module_targets
$(eval
_$(3)_use_mods
+=
$(
dir
$1
)
$(2)
$(
call
strip_fortran_ext,
$(
notdir
$1
))
.use_mods.
$(
call
object_extension,
$3
)
)
$(eval
_$(3)_use_mods
+=
$(
dir
$1
)
$(2)
$(
call
strip_fortran_ext,
$(
notdir
$1
))
.use_mods.
$(
call
object_extension,
$3
)
)
$(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).use_mods.$(call object_extension,$3)
:
$1 $(dir $1)$(am__dirstamp)
$(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).use_mods.$(call object_extension,$3)
:
$1 $(dir $1)$(am__dirstamp)
$(
call
_f90_verbose,F90 USE
[
$3
]
$$
<
)
$(FORTRAN_CPP)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$
(
$p_CPPFLAGS
)
$(CPPFLAGS)
-o
/dev/stdout
$$
< |
grep
-i
-o
'^ *use [^ ,!:]*'
|
sort
-u
>
$$
@
$(
call
_f90_verbose,F90 USE
[
$3
]
$$
<
)
$(FORTRAN_CPP)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$
(
$p_CPPFLAGS
)
$(CPPFLAGS)
-o
/dev/stdout
$$
< |
grep
-i
-o
'^ *use [^ ,!:]*'
|
tr
'[:upper:]'
'[:lower:]'
|
sort
-u
>
$$
@
$(eval
_$(3)_def_mods
+=
$(
dir
$1
)
$(2)
$(
call
strip_fortran_ext,
$(
notdir
$1
))
.def_mods.
$(
call
object_extension,
$3
)
)
$(eval
_$(3)_def_mods
+=
$(
dir
$1
)
$(2)
$(
call
strip_fortran_ext,
$(
notdir
$1
))
.def_mods.
$(
call
object_extension,
$3
)
)
$(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).def_mods.$(call object_extension,$3)
:
$1 $(dir $1)$(am__dirstamp)
$(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).def_mods.$(call object_extension,$3)
:
$1 $(dir $1)$(am__dirstamp)
$(
call
_f90_verbose,F90 MOD
[
$3
]
$$
<
)
$(FORTRAN_CPP)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$
(
$p_CPPFLAGS
)
$(CPPFLAGS)
-o
/dev/stdout
$$
< |
grep
-i
-o
'^ *module [^!]*'
>
$$
@
||
true
$(
call
_f90_verbose,F90 MOD
[
$3
]
$$
<
)
$(FORTRAN_CPP)
$(DEFS)
$(DEFAULT_INCLUDES)
$(INCLUDES)
$
(
$p_CPPFLAGS
)
$(CPPFLAGS)
-o
/dev/stdout
$$
< |
grep
-i
-o
'^ *module [^!]*'
|
tr
'[:upper:]'
'[:lower:]'
|
grep
-v
"
\<
procedure
\>
"
>
$$
@
||
true
endef
endef
$(foreach
p,$(_f90_targets),$(if
$(call
is_per_target,$p),$(foreach
s,$(call
fortran_sources,$p),$(eval
$(call
module_targets,$s,$p-,$p))),$(foreach
s,$(call
fortran_sources,$p),$(eval
$(call
module_targets,$s,,$p)))))
$(foreach
p,$(_f90_targets),$(if
$(call
is_per_target,$p),$(foreach
s,$(call
fortran_sources,$p),$(eval
$(call
module_targets,$s,$p-,$p))),$(foreach
s,$(call
fortran_sources,$p),$(eval
$(call
module_targets,$s,,$p)))))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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