Merge lp:~jml/launchpad/dont-build-apidocs into lp:launchpad/db-devel
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~jml/launchpad/dont-build-apidocs |
Merge into: | lp:launchpad/db-devel |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~jml/launchpad/dont-build-apidocs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+9588@code.launchpad.net |
To post a comment you must log in.
This branch tweaks the Makefile so that if api doc generation fails, then you won't get obscure syntax errors when you run 'make apidoc' again.
The problem was that shell redirection always creates an empty file. So if the command failed, there'd still be an empty file there. This means that 'make' thinks the target has been successfully built.
The solution is redirecting to a temporary file, then move that file to the correct location only if it is successful.