Add build targets for source code formatting
This makes it possible to run:
-
make format-fortranto format Fortran source files withfprettify; -
make format-cto format C/C++ source files withclang-format; -
make formatthat does both.
Although .clang-format is there, most (if not all) of the C/C++ source files in the repo are not formatted according to it. I don't want to mess with the authorship of the lines in git blame, so I leave it to the core developers to decide what to do about it.
If this is accepted, it should replace the existing logic in the CI, I guess.