make - Support: sr #104345, Existence-only prerequisites
You are not allowed to post comments on this tracker with your current authentication level.
sr #104345: Existence-only prerequisites
Submitter: | None | ||
Submitted: | Tue 21 Jun 2005 10:55:04 PM UTC | ||
Category: | None | Priority: | 2 |
Severity: | 1 - Wish | Status: | Works For Me |
Privacy: | Public | Assigned to: | None |
Originator Email: | -email is unavailable- | Open/Closed: | Closed |
Operating System: | None |
Jump to the original submission
Sun 20 Sep 2009 09:00:45 PM UTC, comment #6: |
Paul D. Smith <psmith> |
Tue 06 Sep 2005 09:58:41 PM UTC, comment #5: I think you might be running into a bug, and one that's already fixed at that. Try using the latest version of GNU make (for example ftp://alpha.gnu.org/gnu/make/make-3.81beta3.tar.gz). When I run your test I get the expected behavior: that case 1 and only case 1 results in the mkdir, and that only cases 1 and 2 result in the gcc command. The timestamp of the bin target does not have any impact in any way on whether the bin/hello.out target is out of date or not.
|
Paul D. Smith <psmith> |
Tue 06 Sep 2005 09:27:44 PM UTC, comment #4: Consider the following simple makefile:
|
Anonymous |
Tue 09 Aug 2005 05:00:24 PM UTC, comment #3: I do agree with the first comment, though, that all the examples given seem to me to be good places for order-only prerequisites and I don't quite see the advantage in this new type of prerequisite.
|
Paul D. Smith <psmith> |
Sat 06 Aug 2005 01:23:50 PM UTC, comment #2: It's not clearly defined here, but as far as I can tell it means that "existence-only" prerequisites DO cause the target to be updated, if and only if the prerequisite didn't exist. An order-only prerequisite will never cause the target to be out of date, regardless of whether it existed before or not. |
Paul D. Smith <psmith> |
Sat 06 Aug 2005 01:47:45 AM UTC, comment #1:
|
Anonymous |
Tue 21 Jun 2005 10:55:04 PM UTC, original submission:
Currently, GNU Make has two types of prerequisites: "normal" prerequisites and "order-only" prerequisites. I propose to add a third type, "existence-only" prerequisites. A target with an existence-only prerequisite would only be considered out of date if the prerequisite didn't exist; the relative dates would not matter. For example, suppose you chose the symbol '!' exclamation point) to indicate existence-only prerequisites in the same way that '|' (pipe) indicates order-only prerequisites. The following is an example of where this would be useful (this is just a makefile fragment):
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-09-20 | psmith | Open/Closed | Open | Closed | |
Status | None | Works For Me | |||
2005-08-09 | psmith | Carbon-Copy | - | Added -email is unavailable- | |
2005-08-06 | psmith | Priority | 5 - Normal | 2 | |
Severity | 3 - Normal | 1 - Wish |
Powered by Savane 3.13-bb6a.
Corresponding source code
I haven't heard any response to this and as far as I can see the issue posted here is a bug that was fixed (although the request might have been for a new features indeed).