Gnu make manual phony






















A phony target should not be a prerequisite of a real target file; if it is, its commands are run every time make goes to update that file. As long as a phony target is never a prerequisite of a real target, the phony target commands will be executed only when the phony target is a specified goal (see section Arguments to Specify the Goals). Once this is done, ‘make clean’ will run the recipe regardless of whether there is a file named clean. Phony targets are also useful in conjunction with recursive invocations of make (see Recursive Use of make).In this situation the makefile will often contain a variable which .  · GNU Make Manual. Free Software Foundation. last updated Janu. This manual (make) is available in the following formats: HTML (K bytes) - entirely on one web page. HTML - with one web page per node. HTML compressed (K gzipped characters) - entirely on one web page. HTML compressed (K gzipped tar file) - with one web page per node.


GNU Make Manual. Free Software Foundation. last updated Janu. This manual (make) is available in the following formats: HTML (K bytes) - entirely on one web page. HTML - with one web page per node. HTML compressed (K gzipped characters) - entirely on one web page. HTML compressed (K gzipped tar file) - with one web page per node. Special Targets (GNU make).PHONY. The prerequisites of the special www.doorway.ru are considered to be phony targets. When it is time to consider such a target, make will run its recipe unconditionally, regardless of whether a file with that name exists or what its last-modification time is. See Phony Targets. This manual describes GNU make, which was implemented by Richard Stallman and Roland McGrath. Development since Version has been handled by Paul D. Smith. GNU make conforms to section of IEEE Standard (POSIX.2).


This works well because make-documentation is also a phony target. Now I can easily reuse df in other targets. There are a number of other good uses for phony. ২২ অক্টোবর, ২০২১ To understand this in detail, I recommend this autotools tutorial. Don't be put off by the page count, most of it is diagrams appearing piece by. A phony target is one that is not really the name of a file; rather it is just a name for a recipe to be executed when you make an explicit request.

0コメント

  • 1000 / 1000