Skip to content

Commit fdcae7e

Browse files
committed
fortran: more makefile refactoring
Signed-off-by: Howard Pritchard <[email protected]>
1 parent d33f78b commit fdcae7e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ompi/mpi/fortran/use-mpi-f08/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,17 @@ lib@OMPI_LIBMPI_NAME@_usempif08_profile_la_FCFLAGS = \
433433
if OMPI_GENERATE_BINDINGS
434434

435435
include Makefile.prototype_files
436+
template_files =${prototype_files:%=$(abs_top_srcdir)/ompi/mpi/fortran/use-mpi-f08/%}
436437

437-
api_f08_generated.F90: $(prototype_files)
438+
api_f08_generated.F90: $(template_files)
438439
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \
439440
--builddir $(abs_top_builddir) \
440441
--srcdir $(abs_top_srcdir) \
441442
--output $(abs_builddir)/$@ \
442443
fortran \
443444
code \
444445
--lang fortran \
445-
--prototype-files $(prototype_files)
446+
--prototype-files $(template_files)
446447

447448
EXTRA_DIST = $(prototype_files)
448449

ompi/mpi/fortran/use-mpi-f08/base/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949
if OMPI_GENERATE_BINDINGS
5050

5151
include ../Makefile.prototype_files
52-
template_files =${prototype_files:%=../%}
52+
template_files =${prototype_files:%=$(abs_top_srcdir)/ompi/mpi/fortran/use-mpi-f08/%}
5353

5454
api_f08_generated.c: $(template_files)
5555
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \

ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ config_h = \
8080
if OMPI_GENERATE_BINDINGS
8181

8282
include ../Makefile.prototype_files
83-
template_files =${prototype_files:%=../%}
83+
template_files =${prototype_files:%=$(abs_top_srcdir)/ompi/mpi/fortran/use-mpi-f08/%}
8484

8585
mpi-f08-interfaces-generated.h: $(template_files)
8686
$(OMPI_V_GEN) $(PYTHON) $(top_srcdir)/ompi/mpi/bindings/bindings.py \

0 commit comments

Comments
 (0)