About 51 results
Open links in new tab
  1. What is the purpose of .PHONY in a Makefile? - Stack Overflow

    Jan 27, 2010 · What does .PHONY mean in a Makefile? I have gone through this, but it is too complicated. Can somebody explain it to me in simple terms?

  2. makefile - Declare all targets PHONY - Stack Overflow

    Jun 12, 2017 · I disagree with the premise that a Makefile with all phony targets should be replaced by arbitrary scripts. Make is an extremely prolific tool which has become the de facto standard for …

  3. linux - Phony targets in makefile - Stack Overflow

    Oct 28, 2015 · .PHONY tells GNU make the "all" target is phony - you don't REALLY intended for a file called "all" to be created and it should build the dependencies regardless if a file called "all" exists or …

  4. ¿Qué significa el .PHONY en los Makefiles?

    Me he encontrado muchas veces con esto: .PHONY al final de los archivos Makefile y quisiera saber qué significa. Yo he usado Makefiles pero nunca he necesitado agregar eso. Un ejemplo concreto de ...

  5. How should you use .PHONY in included Makefiles?

    Dec 11, 2019 · The statement .PHONY: rule1 tells Make that it should not consider "rule1" the name of a file to be built. Suppose you put it in the Makefile. What happens when you run another makefile, …

  6. Makefile : .PHONY on multiple targets - Stack Overflow

    Sep 7, 2022 · The question is : is it possible to mass .PHONY the bottom half of the Makefile, by taking advantage either of the stable name scheme (test-%), or the position of targets in the file ? No. make …

  7. Purpose of declaring `all` as .PHONY? - Stack Overflow

    Apr 25, 2022 · Is the only purpose of all being listed as a prerequisite of .PHONY that I can still remake all three programs even if I accidentally, in the unlikely case, create a file in the same directory …

  8. .PHONY usage in makefile - Stack Overflow

    Dec 3, 2013 · True. A .PHONY target can have only dependencies, without any rule. In this case, make will not execute any rule, but will check if the dependencies are satisfied (and, if not, will execute …

  9. Why .PHONY:target and not target:.PHONY? - Stack Overflow

    Jul 20, 2012 · If .PHONY was also listed there then it would be passed to the linker on the command-line, which would probably not result in anything good happening. Using meta-targets like .PHONY …

  10. How do you force a makefile to rebuild a target? - Stack Overflow

    May 3, 2009 · Second, it says "phony target should not be a prerequisite of a real" - well, what if it is? The original question, did not specify if it is or it is not. The correct answer, is, not to declare your …