From 64d27a896fc81b520e5a28172cabd21b68b67866 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 18 Nov 2024 15:05:41 +0900 Subject: [PATCH] fortran: create the Fortran module directory Refs. open-mpi/ompi#12787 Signed-off-by: Gilles Gouaillardet --- ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile.am | 3 ++- ompi/mpi/fortran/mpiext-use-mpi/Makefile.am | 3 ++- ompi/mpi/fortran/use-mpi-f08/Makefile.am | 3 ++- ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am | 3 ++- ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am | 3 ++- ompi/mpi/fortran/use-mpi-tkr/Makefile.am | 3 ++- ompi/mpi/fortran/use-mpi/Makefile.am | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile.am b/ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile.am index 50d8445905b..afd87ebfe49 100644 --- a/ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile.am +++ b/ompi/mpi/fortran/mpiext-use-mpi-f08/Makefile.am @@ -1,6 +1,6 @@ # # Copyright (c) 2012-2019 Cisco Systems, Inc. All rights reserved. -# Copyright (c) 2017-2020 Research Organization for Information Science +# Copyright (c) 2017-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. # $COPYRIGHT$ @@ -72,6 +72,7 @@ CLEANFILES += *.i90 # may generate different filenames, so we have to use a glob. :-( # install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/mpiext-use-mpi/Makefile.am b/ompi/mpi/fortran/mpiext-use-mpi/Makefile.am index 25d53171ffd..d01d540cb9f 100644 --- a/ompi/mpi/fortran/mpiext-use-mpi/Makefile.am +++ b/ompi/mpi/fortran/mpiext-use-mpi/Makefile.am @@ -1,6 +1,6 @@ # # Copyright (c) 2012-2019 Cisco Systems, Inc. All rights reserved. -# Copyright (c) 2020 Research Organization for Information Science +# Copyright (c) 2020-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. # $COPYRIGHT$ @@ -70,6 +70,7 @@ CLEANFILES += *.i90 # may generate different filenames, so we have to use a glob. :-( # install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/use-mpi-f08/Makefile.am b/ompi/mpi/fortran/use-mpi-f08/Makefile.am index 9440b7a9c23..303111c3f1e 100644 --- a/ompi/mpi/fortran/use-mpi-f08/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-f08/Makefile.am @@ -7,7 +7,7 @@ # Copyright (c) 2012-2013 Inria. All rights reserved. # Copyright (c) 2013-2018 Los Alamos National Security, LLC. All rights # reserved. -# Copyright (c) 2015-2021 Research Organization for Information Science +# Copyright (c) 2015-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2016 IBM Corporation. All rights reserved. # Copyright (c) 2017-2018 FUJITSU LIMITED. All rights reserved. @@ -565,6 +565,7 @@ mpi-f08.lo: $(module_sentinel_files) $(SIZEOF_H) # may generate different filenames, so we have to use a glob. :-( install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am b/ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am index bf6595c0d9f..f116a646c1f 100644 --- a/ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-f08/mod/Makefile.am @@ -7,7 +7,7 @@ # Copyright (c) 2012-2013 Inria. All rights reserved. # Copyright (c) 2013 Los Alamos National Security, LLC. All rights # reserved. -# Copyright (c) 2015-2020 Research Organization for Information Science +# Copyright (c) 2015-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2016 IBM Corporation. All rights reserved. # @@ -101,6 +101,7 @@ pmpi-f08-interfaces.lo: mpi-f08-rename.h # may generate different filenames, so we have to use a glob. :-( install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am b/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am index ed23a0fdea7..2dfc31e9ca9 100644 --- a/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am @@ -1,7 +1,7 @@ # -*- makefile -*- # # Copyright (c) 2006-2019 Cisco Systems, Inc. All rights reserved. -# Copyright (c) 2015-2021 Research Organization for Information Science +# Copyright (c) 2015-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2016 IBM Corporation. All rights reserved. # @@ -135,6 +135,7 @@ CLEANFILES += *.i90 # may generate different filenames, so we have to use a glob. :-( install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/use-mpi-tkr/Makefile.am b/ompi/mpi/fortran/use-mpi-tkr/Makefile.am index ddbbc418169..f4f1b93c218 100644 --- a/ompi/mpi/fortran/use-mpi-tkr/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-tkr/Makefile.am @@ -13,7 +13,7 @@ # Copyright (c) 2006-2021 Cisco Systems, Inc. All rights reserved # Copyright (c) 2007 Los Alamos National Security, LLC. All rights # reserved. -# Copyright (c) 2014-2021 Research Organization for Information Science +# Copyright (c) 2014-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2016-2022 IBM Corporation. All rights reserved. # Copyright (c) 2018 FUJITSU LIMITED. All rights reserved. @@ -167,6 +167,7 @@ DISTCLEANFILES = $(nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES) # install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ diff --git a/ompi/mpi/fortran/use-mpi/Makefile.am b/ompi/mpi/fortran/use-mpi/Makefile.am index edc2b088ddc..706f5a3c0b5 100644 --- a/ompi/mpi/fortran/use-mpi/Makefile.am +++ b/ompi/mpi/fortran/use-mpi/Makefile.am @@ -7,7 +7,7 @@ # Copyright (c) 2012-2013 Inria. All rights reserved. # Copyright (c) 2013 Los Alamos National Security, LLC. All rights # reserved. -# Copyright (c) 2015-2020 Research Organization for Information Science +# Copyright (c) 2015-2024 Research Organization for Information Science # and Technology (RIST). All rights reserved. # Copyright (c) 2016 IBM Corporation. All rights reserved. # @@ -54,6 +54,7 @@ mpi-types.lo: mpi-types.F90 # may generate different filenames, so we have to use a glob. :-( install-exec-hook: + @ $(INSTALL) -d $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR) @ for file in `ls *.mod`; do \ echo $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \ $(INSTALL) $$file $(DESTDIR)$(OMPI_FORTRAN_MODULEDIR); \