[GH-ISSUE #903] Why does make distclean remove ../run/john.log? #505

Closed
opened 2026-10-14 03:10:45 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @frank-dittrich on GitHub (Dec 18, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/903

IMHO that is a bug introduced with 903080a1d1.
We shouldn't remove files that are not created by the build process.

Originally created by @frank-dittrich on GitHub (Dec 18, 2014). Original GitHub issue: https://github.com/openwall/john/issues/903 IMHO that is a bug introduced with 903080a1d1d09890e65a571f973ae59486bc42b1. We shouldn't remove files that are not created by the build process.
Author
Owner

@jfoug commented on GitHub (Dec 18, 2014):

Do we distribute john.log, no. That is why it is removed on distclean.

The problem is not the removal of john.log. The problem is running out of the build environment, vs properly installing the software.

<!-- gh-comment-id:67452176 --> @jfoug commented on GitHub (Dec 18, 2014): Do we distribute john.log, no. That is why it is removed on distclean. The problem is not the removal of john.log. The problem is running out of the build environment, vs properly installing the software.
Author
Owner

@frank-dittrich commented on GitHub (Dec 18, 2014):

You can't be serious.

We don't distribute any log files or rec files, so why don't you remove ../run/*.log and ../run/*.rec on make distclean? We also don't distribute any pot files, so let's delete ../run/*.pot as well.

I'd really want to hear what others think.

<!-- gh-comment-id:67454899 --> @frank-dittrich commented on GitHub (Dec 18, 2014): You can't be serious. We don't distribute any log files or rec files, so why don't you remove `../run/*.log` and `../run/*.rec` on make distclean? We also don't distribute any pot files, so let's delete `../run/*.pot` as well. I'd really want to hear what others think.
Author
Owner

@frank-dittrich commented on GitHub (Dec 18, 2014):

https://www.gnu.org/software/automake/manual/automake.html#Clean

As the GNU Standards aren’t always explicit as to which files should be removed by which rule, we’ve adopted a heuristic that we believe was first formulated by François Pinard:

    If make built it, and it is commonly something that one would want to rebuild (for instance, a .o file), then mostlyclean should delete it.
    Otherwise, if make built it, then clean should delete it.
    If configure built it, then distclean should delete it. 
<!-- gh-comment-id:67455062 --> @frank-dittrich commented on GitHub (Dec 18, 2014): https://www.gnu.org/software/automake/manual/automake.html#Clean ``` As the GNU Standards aren’t always explicit as to which files should be removed by which rule, we’ve adopted a heuristic that we believe was first formulated by François Pinard: If make built it, and it is commonly something that one would want to rebuild (for instance, a .o file), then mostlyclean should delete it. Otherwise, if make built it, then clean should delete it. If configure built it, then distclean should delete it. ```
Author
Owner

@magnumripper commented on GitHub (Dec 18, 2014):

I agree with you both :-) but playing safe is probably best.

<!-- gh-comment-id:67483438 --> @magnumripper commented on GitHub (Dec 18, 2014): I agree with you both :-) but playing safe is probably best.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#505
No description provided.