Remove Fortran interface files from the repo
The main change of this PR is that all Fortran interface files are removed from the repo and generated automatically (if needed) when running make
.
My original solution from 10 months ago was quite complicated for the reasons described in 8f44a32f.
To make the generation of the files more transparent, I made a decision that the files should be generated in the maintainer mode only (i.e. when the library is configured with --enable-maintainer-mode
). This means that once/if this MR is merged, it will not be possible to build develop
with the Fortran interface enabled in non-maintainer mode. It won't be possible to create a dist tarball (make dist
) either.
Note that this does not affect cases when building with --disable-maintainer-mode
from the release tarballs/branches: if the automatically generated Fortran interface files are there, make
will treat them as regular source files, without any attempts to update/regenerate them.
Also, the automatically generated files are not removed with make distclean
because they are supposed to be in the dist
. Please, use the standard make maintainer-clean
if you want to remove them.
Additionally, this MR fixes the formatting and gets rid of several compiler warnings.
Merge request reports
Activity
added 28 commits
-
4e11673e - 1 commit from branch
develop
- ef9ab830 - Apply clang formatting.
- cbc991af - Fix a typo in the comment.
- 2b21dcf2 - Reverted "Change datatype of nmiss to size_t." for cdipio.h.
- 27192642 - Make make_fint and cdipio.h compatible with each other.
- c211acc4 - Disable doc file generation with make_fint by default.
- a7f7f2ec - Add an extra option for make_fint for the output directory.
- 6d73daca - Make f2003/bindGen.rb emit warnings to the standard error stream.
- 7a4a4c05 - Make f2003/bindGen.rb change Size- and DateType.
- 60f41418 - Build make_fint with the makefile.
- 3b085523 - Refactor the Fortran ISO C interface generation.
- d9db7157 - Update Fortran interface files when calling make in the maintainer mode.
- 01befed7 - Generate/update Fortran 77 interface files with make.
- 913d0ec9 - Do not add unpacked mulval.nc into the release tarball.
- 6fb9a927 - Remove unused tex files from the repo.
- 31fdda0b - Change type of nmiss to SizeType in cdf_lazy_grid.
- b0ce7d54 - Add missing pragma to the output of make_fint.
- 063cbbe8 - Generate/update Fortran 77 interface files in the maintainer mode only.
- e5378d2d - Remove automatically generated files of the Fortran interface.
- ef0c38b1 - Avoid redundant re-generation of Fortran 77 interface files.
- def80ec8 - Make make_fint emit error/warning messages to the error stream
- 5628ceef - Fix parallel generation of Fortran 77 interface files.
- eed9243b - Make multifile recovery recipes dry-run-friendly.
- 146f62c4 - Fix consecutive calls to make.
- 09d267ca - Enable 'make -j dist'.
- 991b5806 - Do not generate cdipio.inc/cdipioFortran.c when the Fortran interface is disabled.
- 4f33190d - Update .gitignore.
- 97e38865 - Update CI scripts.
Toggle commit list-
4e11673e - 1 commit from branch
@m214003 I am taking your email as a yes and merging this.