make doc fails silently if FORD is not available
If you run make doc
but do not have FORD installed / available, then some preprocessing is done (so some make output messages are printed) but then nothing else happens. There is no error message to say that documentation was not built. This is confusing. There should be an error message to say something like: “FORD not available. Documentation not built. Please install FORD to build documentation, e.g. python3 -m pip install --user ford
“
Comments (10)
-
-
reporter which ford
has no outputmake check_ford_install
has the following output:
Ford command ford not in path -- is it installed?
Consider installing with pip install --user ford and add /home/steve/.local/bin to PATH
Makefile:1016: recipe for target 'check_ford_install' failed
make: *** [check_ford_install] Error 1
Ah ha! I have found the problem. I was actually running
make -j doc
and the above error message was reported, just further up buried in amongst theProcessing file ‘...'
messages so I didn’t see it. This is easily solved by fixing the order of dependencies of thedoc
target. Micro-PR coming up in a few minutes… -
reporter - changed status to open
Open and assigned to Steve
-
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to resolved
Fix bug where missing Ford error message was lost
This bug is not present in 8.0.3 or 8.0.4_RC but is present in next (d8aabb76). When running
make -j doc
with Ford not installed, the missing Ford error message gets lots in the output of thenamelist_doc
target. This is fixed by reversing the order of these two dependencies.Fixes
#98→ <<cset 7dc1279ae5db>>
-
reporter - changed status to open
Automatically resolved by PR #266 but actually we want to keep this open until that PR is merged.
-
Reopening as not resolved until PR merged.
-
reporter - changed status to resolved
Fix bug where missing Ford error message was lost
This bug is not present in 8.0.3 or 8.0.4_RC but is present in next (1aefb86). When running
make -j doc
with Ford not installed, the error message reporting that Ford is missing gets lots in the output of thenamelist_doc
target. This is fixed by havingnamelist_doc
depend explicitly oncheck_ford_install
.Fixes
#98→ <<cset fbf4b285d1a8>>
-
reporter - changed status to open
Re-open as not resolved until merged
-
- changed status to resolved
Fixed by PR #268
- Log in to comment
We have the following in the makefile and the doc target should depend on this
what’s the outcome of
which ford
on your system? What do you get if you runmake check_ford_install
?