Editing Documentation/Maemo 5 Developer Guide/GNU Build System
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 68 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 314: | Line 314: | ||
=== PHONY Keyword === | === PHONY Keyword === | ||
- | Suppose that for some reason a file called '''clean''' appears in the directory in which make is run with clean as the target. In this case, make probably | + | Suppose that for some reason or another, a file called '''clean''' appears in the directory in which make is run with clean as the target. In this case, make would probably decide that since clean already exists, there is no need to run the commands leading to the target, and in this case, make would not run the rm command at all. Clearly this is something that needs to be avoided. |
For these cases, GNU make provides a special target called <code>.PHONY</code> (note the leading dot). The real phony targets (clean) will be listed as a dependency to <code>.PHONY</code>. This signals to make that it should never consider a file called clean to be the result of the phony target. | For these cases, GNU make provides a special target called <code>.PHONY</code> (note the leading dot). The real phony targets (clean) will be listed as a dependency to <code>.PHONY</code>. This signals to make that it should never consider a file called clean to be the result of the phony target. |
Learn more about Contributing to the wiki.